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

cc @mstensho

I agree that not hoisting would be more consistent, especially if it actually matters for the behavior.

> but there is no corresponding interface inheriting CSSStyleDeclaration

I do think we're going to need a `CSSFooDeclarations` for any `@foo` that accepts declarations in its block contents, exposing just the descriptors that are relevant for that at-rule.

> I guess hoisting declarations is inappropriate in @function.

Definitely inappropriate. It's currently specced to use `CSSNestedDeclarations`, but it doesn't actually work well due to `style` being the wrong type, as you mentioned.

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


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

Received on Tuesday, 14 January 2025 20:02:07 UTC