nitter
Roma Komarov (inactive)
@kizmarh
31 Mar 2016
Is there any proper reason why in CSS `calc(2em/1em)` won't give you `1`? Would be so useful for getting proportions with the unit canceled.
5
2
L. David Baron @dbaron@w3c.social
@davidbaron
1 Apr 2016
Replying to
@kizmarh
@kizmarh
It makes dealing with divide-by-zero easier (hard to tell if (16px-1em) is 0). But plan is to allow it in next level.
Apr 1, 2016 · 9:27 AM UTC
2
1
Roma Komarov (inactive)
@kizmarh
1 Apr 2016
Replying to
@davidbaron
@davidbaron
no no, right now I’m talking about the handling of the _same_ unit values, and specifically about the division of them.
1
L. David Baron @dbaron@w3c.social
@davidbaron
1 Apr 2016
@kizmarh
I know, but it's a problem once you introduce units on the bottom of fractions. Also, different units seem more useful.
1
more replies
Roma Komarov (inactive)
@kizmarh
1 Apr 2016
Replying to
@davidbaron
@davidbaron
example: `transform: scale(calc(2em/1em))` should be allowed and be equal to `transform: scale(2)`.