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

Yes, I agree being able to use units would be nice. It's essentially identical from a parsing perspective, just allowing `<number> | <dimension> | <percentage>` rather than just `<number>`. Math functions too, then?

And yes, I expect that we'd resolve computed units like they were in MQs, and I guess %s would be left as-is (not resolving against anything), so we can use naive numeric comparison. (And using in a math function would simply not work here.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5890#issuecomment-3560632480 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 23:31:37 UTC