-
Notifications
You must be signed in to change notification settings - Fork 715
[css-syntax-3] Descriptor declarations with global substitution value, CSS-wide keyword, !important
#7838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, this seems to me like terminology just failing to link up correctly. Syntax seems to think the declarations inside @page are properties, and Page thinks they're descriptors. I'm not sure yet what edits we need, but clearly we need some edits. :) |
Yeah, imo, descriptors matching a property should be defined as functionnaly equivalent to properties, ie. their declarations cascade if the spec for the rules accepting them defines it, and they should also allow substitution values and CSS-wide keywords, like in keyframe rules (in which declarations do not cascade though), noting that currently |
Changing the title to broaden the topic because it is also unclear if descriptor declarations accept global substitution values (like
@font-face {
font-display: block !important;
}
@font-face {
font-display: initial;
}
@font-face {
font-display: var(--custom);
}
@page {
color: green !important;
size: 1px !important;
}
@page {
color: initial;
size: initial;
}
@page {
color: var(--custom);
size: var(--custom);
}
https://drafts.csswg.org/css-variables-1/#using-variables
https://drafts.csswg.org/css-cascade-5/#defaulting-keywords In my opinion:
|
!important
!important
!important
According to #5969 (comment), all declarations in
@page
are for descriptors. Therefore I assume the above (from CSS Syntax) also applies to descriptors matching a property. If so, the first sentence seems confusing to me.https://w3c.github.io/csswg-drafts/css-page-3/#cascading-and-page-context
The text was updated successfully, but these errors were encountered: