Re: [csswg-drafts] [css-values-5] Behavior of ident() in at-rule preludes (#12219)

Ah, no. It's too much pain for zero (?) benefit. We would then need to parse _~all_ rules (also style rules, since [some selectors](https://drafts.csswg.org/css-view-transitions-1/#named-view-transition-pseudo) can hold custom idents) into some not-fully-resolved form that needs to be (re)computed into a final rule when media values change. I don't see that actually happening.

Then I think we should just make `ident()` invalid without an element context. (Which may be what the spec is saying already.)

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


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

Received on Thursday, 22 May 2025 12:24:48 UTC