W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

Re: [csswg-drafts] [css-sizing] Aspect-ratio min-size needs to check for "auto", not non-zero (#4217)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Oct 2020 17:45:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-707905156-1602611130-sysbot+gh@w3.org>
Not quite! Following the definitions, the type of `100% + 100px` is obtained by [adding the types](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-add-two-types) of 100% and 100px; following that link to TypedOM, we find that the resulting type is "length, with a percent hint set to length".

Then, a calc() matches a production if its type [matches that production](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-match); following the link again to TypedOM, a type with a percent hint can not match `<length>` (because it contains a non-resolved percentage that we're inferring to be compatible with `<length>`).

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 October 2020 17:45:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC