Re: [csswg-drafts] [css-values-5] What does sibling-index()/sibling-count() return if there's no element? (#11232)

  > The spec handles `anchor-size()` as IACVT if not used in a sizing property, but whether `anchor-size()` should parse at all in a non-element context like the ones mentioned above is not clear to me.

In my opinion, this is an error in the spec. `anchor()` and `anchor-size()` are explicitly defined as `New values` of the set of properties for which they are valid. What would be the reason to accept them in any property value just to make them IACVT in other properties?

Fwiw, #10679 is a duplicate of this issue that is extended to other numeric substitution functions, which could also be extended to arbitrary substitution functions (cf. https://github.com/w3c/csswg-drafts/issues/10679#issuecomment-2266364116).

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


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

Received on Thursday, 13 March 2025 10:55:10 UTC