Style invalidation after call to CSS.registerProperty
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: fwang, Assigned: fwang)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
See the attached testcase, after CSS.registerProperty calls, --my-visibility and --my-display should use initial values hidden and none respectively so the "FAIL" messages shouldn't show up. This works in WebKit and Chrome.
There is a similar WPT registered-property-change-style-001.html test in interop 2023 that has always been failing in Firefox: https://wpt.fyi/results/css/css-properties-values-api/registered-property-change-style-001.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-property
| Assignee | ||
Comment 1•3 years ago
|
||
Same test using @property instead. This currently works in Firefox.
| Assignee | ||
Comment 2•3 years ago
|
||
@Emilio: I guess I need to add some invalidation call in Servo_RegisterCustomProperty. I can investigate later, but do you have some quick hints about how to do that?
Comment 3•3 years ago
|
||
You want a block like this but in the caller (probably only when RegisterProperty succeeds.
Instead of RestyleSubtree I think RecascadeSubtree would be enough to pick up the initial values.
| Assignee | ||
Comment 4•3 years ago
|
||
Call to CSS.registerProperty may result in rendering changes compared
to when variables were interpreted as unregistered custom properties.
Ensure we recascade style for the whole document tree.
This was already covered by WPTs but add a more direct check for
paint and reflow.
Updated•3 years ago
|
Comment 7•3 years ago
|
||
Backed out for causing wpt failures on /css/css-properties-values-api/register-property.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/f4b206937d6b197ce918eb811071e5222b4ecabc
| Assignee | ||
Comment 9•3 years ago
|
||
It seems more tests pass after the recent changes Zach landed.
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
| bugherder | ||
Description
•