Re: [csswg-drafts] [css-page-3] Should `@page` declarations be hoisted? (#11272)

It does not matter for the rendering behavior as long as conditional rules are not allowed in `@page`, which might be useful to avoid repeating multiple `@page` rules for different conditions:

```css
@page {
  @media print and (width > 21cm) {
    margin: 3cm; /* Does not apply if declarations are hoisted */
  }
  margin: 1cm;
}
```

Now this can remain unspecified and change later if conditional rules are allowed, which would only change the CSSOM behavior.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11272#issuecomment-2705704159 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 March 2025 07:16:21 UTC