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

Would this only work if the attribute value can be parsed as a number?

I think it would also be useful to e.g. match `width="10px"` with `[width > 5px]`.

Of course that raises the question of what to do with `em` units and such, I guess they could be based on the initial value like in https://drafts.csswg.org/mediaqueries-5/#units

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


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

Received on Thursday, 20 November 2025 21:38:22 UTC