- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 02 Oct 2019 23:24:54 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Support <number> (and therefore calc) as a <ratio>`, and agreed to the following: * `RESOLVED: Accept proposal in favor of serializing with the calc expression` <details><summary>The full IRC log of that discussion</summary> <dael> Topic: Support <number> (and therefore calc) as a <ratio><br> <dael> github: https://github.com/w3c/csswg-drafts/issues/3757<br> <dael> AmeliaBR: Finishing a discussion that was time clamp in Aug. Issue is about serialization issues.<br> <dael> AmeliaBR: Aspect ratio is unique and this applies to MQ and property- defined where division is part of syntax not jsut part of calc. Brought questions on how to serialize<br> <dael> AmeliaBR: Proposal I had was we trat numerator and denominator as sep/ components of the value. Each simplified as independent. If one is omitted the other becomes a default 1<br> <dael> AmeliaBR: Only issue I found since last discussion is right now both values required to be positive. Calc expressions that resolve to -value/-value you clamp them so it's 0/0 instead of negatives canceling. Might be worth doing clamping at used value as this is non-intuitive<br> <dael> TabAtkins: Allowing individual numbers to be calcs is consiquence to CSS syntax. All numbers can be calcs<br> <dael> TabAtkins: Agree negatives not worth allowing. I don't see why two negatives should pop out. Even if they would cancel doesn't seem worthwhile.<br> <dael> TabAtkins: Anything with single calc?<br> <dael> AmeliaBR: Single calc is same as single number. I prop for serialization that's your numerator and insert the missing denominator as a 1<br> <dael> jen: Agree but don't see practical case for negative over negative so if that's difficult I'm for disallowing<br> <dael> AmeliaBR: Proposal as in my comment for Aug 28: Always serialalie as number/number where the numbers might be calc expressions<br> <dael> heycam: Against principle of shortest simplification, but fine for me. As long as we write that in spec<br> <dael> fantasai: Is shortest most backwards compat serialization<br> <dael> heycam: Is it a thing with this prop?<br> <dael> AmeliaBR: Yes with the MQ. Keep prop consistent with MQ<br> <fantasai> regardless, should indeed be made explicit :)<br> <dael> smfr: What about proposal to use units?<br> <dael> AmeliaBR: Agreed not to do that, but can do it by putting it inside a calc<br> <dael> smfr: Okay<br> <dael> Rossen_: Other comments? It's not perfect but sounds like best we can do<br> <dael> Rossen_: Objections to resolve in favor of serializing with the calc expression?<br> <dael> RESOLVED: Accept proposal in favor of serializing with the calc expression<br> <AmeliaBR> (that should really be "with the division", not a `calc()`!)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3757#issuecomment-537722295 using your GitHub account
Received on Wednesday, 2 October 2019 23:24:55 UTC