Closed
Bug 2049616
Opened 19 days ago
Closed 5 days ago
Style query fails if custom property is set with contrast-color
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
154 Branch
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: jakea, Assigned: emilio)
Details
Attachments
(2 files)
https://output.jsbin.com/yorexud/quiet - background should be green.
@property --contrast-color {
syntax: "<color>";
initial-value: white;
inherits: true;
}
:root {
--contrast-color: contrast-color(#000);
}
@container style(--contrast-color: white) {
body {
background: green;
}
}
The getComputedStyle on --contrast-color is correct, but the style query isn't working.
Comment 1•12 days ago
|
||
The severity field is not set for this bug.
:jfkthame, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(jfkthame)
| Assignee | ||
Comment 2•5 days ago
|
||
The root cause is that we don't simplify contrast-color at computed-value time even though we can.
Updated•5 days ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
| Assignee | ||
Updated•5 days ago
|
Flags: needinfo?(jfkthame)
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/2c81cf1ea540
https://hg.mozilla.org/integration/autoland/rev/1eb5a35b878c
Resolve contrast-color() at computed-value time if possible. r=jfkthame
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61128 for changes under testing/web-platform/tests
Comment 6•5 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•