Color picker is not displayed when CSS custom property is used in colour definition
Categories
(DevTools :: Inspector: Rules, defect, P3)
Tracking
(firefox126 fixed)
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: lwarlow, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4557.4 Safari/537.36
Steps to reproduce:
Steps to reproduce the problem:
- Go to https://jsfiddle.net/qz3206rf/3/
- Inspect the red text
Actual results:
No colour picker is displayed.
Expected results:
It would be nice if dev tools could display the colour picker for colour definitions (color, background-color etc) that make use of a CSS custom property.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Reporter | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Visible in data:text/html,<meta charset=utf8><style>body { --alpha: 1;%20 background: rgba(100, 0, 100, var(--alpha)) }</style>hello
The body
background
value does not have the color swatch
Comment 3•1 year ago
|
||
Since we resolve variables on the client at the moment, we might still have cases where we can't resolve the value at the moment. But as long as we have a value for the color we should show the color swatch.
In case the value gets modified by the color picker, we will just override the whole value and won't try to preserve the usage of the variable in the property definition.
Reporter | ||
Comment 4•10 months ago
|
||
Just as an fyi this is now supported in chromium.
Assignee | ||
Comment 5•9 months ago
|
||
This should show the color swatch for case like rgb(var(--r), 0, var(--b))
.
Updated•9 months ago
|
Comment 7•9 months ago
|
||
bugherder |
Updated•9 months ago
|
Description
•