Properties & Values API: Change in custom properties registrations should trigger @supports conditions recheck
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: jyc, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Updated•10 years ago
|
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 7•10 years ago
|
||
| Reporter | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
| mozreview-review | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
| mozreview-review | ||
Comment 12•9 years ago
|
||
| mozreview-review | ||
Comment 13•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Comment 14•4 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:dholbert, since the bug has recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 15•3 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #7)
jyc, dbaron, do you think this sounds workable, and reasonable? (Though I'm
still not quite sure whether @supports should be affected by variable
registrations, and the GitHub issue on it is still open.)
The spec was changed in 2019 and now contains this section:
As stated in § 2.2 Parse-Time Behavior, both unregistered and registered custom properties accept (almost) all possible values at parse-time. Registered custom properties only apply their syntax at computed value time.
So, all custom properties, regardless of whether they’re registered or unregistered, will test as "true" in an @supports rule, so long as you don’t violate the (very liberal) generic syntax for custom properties.
See https://drafts.css-houdini.org/css-properties-values-api-1/#conditional-rules
Relevant revisions:
https://github.com/w3c/css-houdini-drafts/commit/0eeca05a86688bdf74b6fdc8c4aea712b24cdcb2
https://github.com/w3c/css-houdini-drafts/commit/75ec921d1a842492698f2bb51a9be5ae2023b12c
https://github.com/w3c/css-houdini-drafts/commit/d3c7da48d09d50abfc065808486bd4c3249b9d74
Also, the following test was written to check that change and we currently pass it:
css/css-properties-values-api/conditional-rules.html
Closing this as INVALID.
Comment 16•3 years ago
|
||
Change dependency since bug 1273706 is now used as a meta bug.
Description
•