Re: [csswg-drafts] [css-selectors] add numeric comparisons on attribute values (#5890)

> Adding support for dimensions adds a lot of complexity it for what seems like little benefit to me, and encourages problematic patterns.

Can you specify?

@tabatkins said:

> attribute selectors currently require the value to be an ident or a string, so numbers are invalid. Thus `[foo=5]` would already unambiguous as a numeric comparison rather than a string comparison.

The same is true for dimension and function tokens, those are also invalid today.
So I am unsure where the extra complexity is that you see?

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


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

Received on Friday, 21 November 2025 07:21:29 UTC