by agconti · 10y ago · 0 comments
The source leverages calc for simple width percentages, so on android browser below 47 these values won't calculate at all: http://caniuse.com/#feat=calc.
> Partial support in Android Browser 4.4 refers to the browser lacking the ability to multiply and divide values.
Why wouldn't the author change this to:
.Cell.\-1of12 { width: calc(100% * 3 / 12); }
to
.Cell.\-1of12 { width: 25% ; }
It seems silly to go through the trouble of installing a lib when it gives you less browser support than flexbox itself.
It's a pretty odd use for a preprocessor.
Each mixin is only used once (so why bother?) and the calcs are turned into percentages by the compiler (so why bother?)
I have a CSS code that looks like this for a good reason:
left: calc(100% + 2em)
that I'd like it to be changed to support legacy stock Android browsers.