- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Mar 2025 22:57:18 +0000
- To: public-css-archive@w3.org
> Hmm, as an author, I would expect the `0 = 0px` to be true, in the same way `1.0` will be equal to `1`, _as long as we know the type_. Like when we have a style query with a registered `<length>` custom property, a `0` and `0px` comparison will be always true: https://codepen.io/kizu/pen/ByaPWQv Sure, OK. Note, however, that this is more like `<number> | <length>`: ```css @property --x { syntax: "<number> | <length>"; initial-value: 0px; inherits: false; } #child { color: red; @container style(--x: 0) { /* false */ color: green; } } ``` But we can certainly still make `0 = 0px` work. -- GitHub Notification of comment by andruud Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8376#issuecomment-2752725061 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 25 March 2025 22:57:19 UTC