Closed
Description
- We decided on strict maths going forward but there is general unease about forcing () around every calculation
- I don't think we want to change things massively or go back to the drawing board
See #1872
Possibility to add another case for calc which like font, with strict mode off, essentially turns strict mode on for a rule ? Too many exceptions in the future?
@seven-phases-max :
Well, there're a lot of other possibilities, e.g. ./
or require parens for division (e.g. 1/2
->1/2
but (1/2)
->0.5
) etc...
Also, the "special cases" (e.g. properties where x/y
can appear as shorthand) are not so rare (starting at padding
/margin
and ending with background
/border-radius
and eventually there can be more) so we just can't hardcode them all like it's done for font
(and because of that I think that the current font "workaround" is just a temporary and quite dirty kludge that ideally should be removed too).