Re: [csswg-drafts] [css-conditional] `@supports-condition`, for larger feature queries and named reuse (#12622)

  > A different but related **problem** is that `@supports-condition` may be restricted to nested style/grouped rules when nested in a style rule [...]

After rereading previous discussions more carefully, it might not be a _problem_ but rather _intentional_: `@supports-condition` block value should accept any valid content in the context, if I am not mistaken. (The spec currently includes an example with top-level property declarations.)

Other questions/concerns:

  - should the block contents of a top-level `@supports-condition` be parsed like a style sheet or a block contents? (they have different content end tokens)
  - should authors be allowed to update `@supports-condition` contents via `CSSSupportsFunctionRule`?
  - why `CSSSupportsFunctionRule` does not extend `CSSConditionRule` while `@supports-condition` is defined as a conditional group rule?
  - how to compute `CSS.supports(--name)`?

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


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

Received on Thursday, 6 November 2025 14:35:15 UTC