Re: [csswg-drafts] [css-values] calc(): divide length by length to equal number? (#7448)

> There are no restrictions. Your expression has to end up with a legal type after handling all the units, but that's it.

How can `[ length → 2 ]` be *legal* when [matched](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-match) against `<length>`?

> A type is said to match a CSS production in some circumstances: 
> - A type matches `<length>` if its only non-zero entry is `«[ "length" → 1 ]»` and its percent hint is null.

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


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

Received on Thursday, 7 July 2022 03:15:11 UTC