4 ms·
This lib will only work on the latest browsers. The source leverages calc for simple width percentages, so on android browser below 47 these values won't calcu
by agconti 11y ago
This lib will only work on the latest browsers.
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 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.
- richthegeek 11y agoThe "dist" version has all this removed. 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?)
- gotchange 11y agoIs there a way to work around this limitation? 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.