-
Notifications
You must be signed in to change notification settings - Fork 716
[css-page-3] Allow custom property declarations in @page
and margin rules
#9150
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
Edit: This comment is only about The current reason is that allowing custom properties in For example:
|
Of the 8 print-focused CSS engines that support custom properties at https://printcss.live, 7 of them support them in |
Thanks for both feedback. Maybe I should have created two separate issues... I was pretty confident that it was an oversight for Based on current interoperability, it seems to be required to define that they are valid in 4.3. @page rule grammar
[...]
In addition, the following rules apply:
- - The @page rule can only contain page properties and margin at-rules.
- - The margin at-rules can only contain page-margin properties.
+ - The @page rule can only contain page and custom properties and margin at-rules.
+ - The margin at-rules can only contain page-margin and custom properties.
[...]
4.4. Cascading in the page context
[...]
+ Custom properties inherits from '':root''. |
@page
and margin rules
Chrome/FF (at least) allows custom properties in
@page
and margin rules although this is not allowed by CSS Paged Media 3. CSS Anchor Position 1 does not allow them in@try
.But I cannot think of a valid reason to exclude them.
The text was updated successfully, but these errors were encountered: