Re: [csswg-drafts] [css-values-4] Should `<percentage>` be invalid in calculations matching `<number>`? (#9661)

No, the current behavior is somewhat intentional; it's similar to how `z-index: calc(2em / 10px)` is valid despite z-index not accepting lengths.

> Note: I assume that the type of calc(1% / 1%) as a value for z-index is currently [percent: 0], which [matches](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-match) <number>.

Correct.

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


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

Received on Thursday, 30 November 2023 23:00:44 UTC