Re: [csswg-drafts] [media-queries][css-sizing] Support <number> (and therefore calc) as a <ratio> (#3757)

> Negative numbers are not allowed in <ratio>

That's the existing syntax, the question is whether to keep that when switching to `<number>`.  This is important when using calc values: do the results of the calc values get clamped to be no less than 0 before or after you do the division? E.g., is something that computes to `calc(-10) / calc(-5)` a valid ratio equal to 2/1, or is it an invalid 0/0 ?

I added a few more tests to my [CodePen](https://codepen.io/AmeliaBR/pen/8458d7a2c47d923f12165a9c7c01f252?editors=0111), currently calc expressions that evaluate to negative values seem to be clamped to 0 then discarded because 0 is also invalid?

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

Received on Wednesday, 28 August 2019 23:03:07 UTC