- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Thu, 29 Feb 2024 21:52:33 +0000
- To: public-css-archive@w3.org
dbaron has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-typed-om] inverting a type should preserve the percent hint == So after looking at some of the spec rules for #10017, I'm concerned that dividing (in `calc()`) by values with percentages produces inconsistent results. The rules for [invert](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-invert-a-type) invert (and preserve) `percent` types but erase percent hints. This means when a percentage in the divisor leads to it having a "percent" type it is preserved, but when it leads to a percent hint, it is removed. For example this means that `calc(30px / 20%)` has a type that involves percentages whereas `calc(30px / (20% + 10px))` does not. This seems wrong, and it seems like inverting a type should preserve the percent hint rather than erasing it. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10018 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 29 February 2024 21:52:34 UTC