CSS variable with color-like ident triggers a color swatch
Reported by
myakura....@gmail.com,
Mar 16 2016
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2626.0 Safari/537.36 Steps to reproduce the problem: 1. go to https://jsfiddle.net/wm7qaxcz/ 2. inspect "hello" in the bottom right pane 3. check out the styles applied to the span element What is the expected behavior? there is no color swatch in between "--" and "blue" What went wrong? the "blue" in "var(--blue)" is mistakenly interpreted as a color and blue color swatch inserted before "blue". Did this work before? N/A Chrome version: 50.0.2626.0 Channel: canary OS Version: OS X 10.11.3 Flash Version: Shockwave Flash 21.0 r0
,
Mar 20 2016
,
Mar 21 2016
,
Mar 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/85d68b348b4c3752d366649eb86b8d0bb34f27df commit 85d68b348b4c3752d366649eb86b8d0bb34f27df Author: samli <samli@chromium.org> Date: Tue Mar 22 04:43:40 2016 Devtools: Don't show color swatch for variables like var(--blue) BUG= 595231 Review URL: https://codereview.chromium.org/1822613002 Cr-Commit-Position: refs/heads/master@{#382510} [modify] https://crrev.com/85d68b348b4c3752d366649eb86b8d0bb34f27df/third_party/WebKit/LayoutTests/inspector/elements/styles/url-color-swatch-expected.txt [modify] https://crrev.com/85d68b348b4c3752d366649eb86b8d0bb34f27df/third_party/WebKit/LayoutTests/inspector/elements/styles/url-color-swatch.html [modify] https://crrev.com/85d68b348b4c3752d366649eb86b8d0bb34f27df/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
,
Mar 22 2016
,
Sep 29 2016
,
Sep 29 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by caseq@chromium.org
, Mar 16 2016Components: -Platform>DevTools Platform>DevTools>Editing
Labels: -OS-Mac OS-All
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)