Re: [csswg-drafts] [css-values-5] Should an arbitrary substitution nested within another be accepted in context? (#10337)

I am not sure I remember why I was unsure of the answer to my question. Perhaphs because of the current text for `var()`/`attr()`/`env()`/`random-item()` (emphasize added):

  > If a property contains one or more [arbitrary substitution] functions, and those functions are **syntactically** valid, the entire property’s grammar must be assumed to be valid at parse time.

But I would definitely say that `@page { size: attr(size length) }` should be invalid, ie. *those functions [should be] syntactically valid **and accepted in the context***.

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


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

Received on Saturday, 3 August 2024 03:45:21 UTC