Re: [csswg-drafts] [css-contain-4] Define a range syntax for style container queries (#8376)

Percents aren't comparable to lengths in contexts where they don't resolve against a length, so they'd just be false, I suppose?  That is, `--foo > 50%` can be true if `--foo: 75%`, but if `--foo: 75px` it'll always be false. This should be the same behavior as comparing a `<length>` custom property to an angle; we can't tell at parse time whether the comparison is syntactically valid, so all we can do is say it's false when we actually make the comparison.

(Do we want to try and do syntax validation on known properties? Or should we just consider them the same way, where doing a nonsensical comparison like `padding-left > 50deg` is false?)

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


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

Received on Tuesday, 7 February 2023 19:16:29 UTC