Hacker News new | ask | show | jobs
by agconti 3750 days 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.

> 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.

1 comments

The "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?)

Is 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.