threepointone / glamor

inline css for react et al
MIT License
3.66k stars 200 forks source link

Autoprefixed rules with mixed prefixes #309

Open kryops opened 7 years ago

kryops commented 7 years ago

When I write a rule that contains multiple autoprefixed parts, some of the rules that are created contain mixed prefixes:

glamor.css({
    flexBasis: 'calc(100% - 10px)'
})

also creates this rule among all the others:

-webkit-flex-basis: -moz-calc(100% - 10px);

Would be great if the prefixer could filter out rules that contain mixed prefixes

kryops commented 7 years ago

I should have tried with the newest version of glamor :flushed: It does not seem to auto-prefix calc any longer. Not sure if this issue is still relevant then...

threepointone commented 7 years ago

I'll leave this open and investigate on the weekend if there are any other combinations that could trigger it