Mirror: CSS prefixing helpers in less than 1KB 馃寛
1# Support
2
3This prefixer aims to be small in terms of bundle size but
4also aims to support all common transformations and prefixes
5for all evergreen browsers and IE11.
6
7Most transformation can be expressed as simple prefixes, which
8add `-ms-`, `-moz-`, or `-webkit-` to a CSS property.
9These are compiled into three regular expressions, which is
10generated by `scripts/generate-prefix-map.js`.
11This code generation is based on the data available in
12`inline-style-prefixer` and `mdn-data/css`.
13
14Some transformations are more complex and require full functions
15to be executed. However, not all transformations (i.e. "plugins")
16from `inline-style-prefixer` have been ported, since they're not
17all supported in IE11 anyway. If the output
18of a transformation is not supported in IE11, then it won't be
19included in this library, and additionally, if a transformation
20is not needed by any browser within a reasonable usage range,
21then it's also omitted:
22
23- `calc`: Won't be prefixed with `-moz` for Firefox <16, as its
24 usage has dropped below 0.1%.
25- `cross-fade()`: Not supported by Firefox, Edge, or IE11.
26- `cursor`: Does not need to be prefixed for any supported browser.
27- `filter`: Not supported by Firefox, Edge, Chrome, or IE11.
28- `image-set()`: Not supported by Firefox, Edge, or IE11.
29- `animation`: All browsers that require prefixing have usage
30 numbers at or below 0.66%.
31- `transition`: All browsers that require prefixing have usage
32 numbers at or below 0.66%.
33- Intrinsic & Extrinsic Sizing: This is not widely supported yet,
34 with IE11 and Edge not supporting it, and most other browsers requiring
35 prefixes.
36- CSS Gradient functions: All browsers that require prefixing
37 have usage numbers at or below 0.66%.
38- `background-clip`: The `text` value does not transform to
39 `-webkit-text, text` as that's not supported in IE11.
40- Flexbox and Grid: No prefix is worth being performed due to the amount
41 of inconsistencies which would only apply to IE11.