Re: [csswg-drafts] [css-values-5] Disallow mix/random/tree-counting functions in some contexts (#10982)

> Only container queries really have something resembling a sensible behavior IMO, and what should the fallback behavior be is not particularly clear...

Container queries should always be in an element context, right?

css-conditional-5 currently says:

"[Relative length](https://drafts.csswg.org/css-values-4/#relative-length) units (including [container query length](https://drafts.csswg.org/css-conditional-5/#container-query-length) units) and [custom properties](https://drafts.csswg.org/css-variables-2/#custom-property) in [container query](https://drafts.csswg.org/css-conditional-5/#container-query) conditions are evaluated based on the [computed values](https://drafts.csswg.org/css-cascade-5/#computed-value) of the [query container](https://drafts.csswg.org/css-conditional-5/#query-container)."

which could be extended to include evaluation of tree counting functions based on the container element.


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


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

Received on Tuesday, 20 May 2025 09:45:51 UTC