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

In media queries, there is no element context, but we still allow `em` units that resolve against the initial `font-size`. In general, anything you could put into an `ident()` (relative units, `sign()`, `sibling-index()`, etc), you could also put into a media query, and it must have (or should have) some behavior already.

So how about (proposed resoluition): `ident()`is allowed _anywhere_ `<custom-ident>` is accepted. When used outside of an element context, the numeric parts behave as they would in a media query.

-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12219#issuecomment-2900473233 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 09:10:50 UTC