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

I think the semantics of `[foo > 5]` are clear without an additional opt-in. Adding support for dimensions adds a lot of complexity it for what seems like little benefit to me, and encourages problematic patterns. The vast majority of use cases I've encountered are around plain numbers. For dimensions, there's always the hack outlined in #354 so it's not like complex things aren't already possible. So let's focus on making simple things easy.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5890#issuecomment-3561174470 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 03:30:36 UTC