[change] StyleSheet rewrite

* Improves React Native compatibility by making StyleSheet.create the identify function.
* Improves React 18 support by inserting styles on eval.
* Supports use with multiple windows (i.e., iframes) and shadow roots.
* Supports nested LTR/RTL layouts.
* Supports 3rd party compilers and extraction to static CSS.
* Fixes static and dynamic short/longform deduplication.
* Reduces browser support: Safari 10.1+, Chromium Edge, no IE, no legacy Android browsers.
* Removes automatic vendor-prefixing of inline styles (for better perf).
* Removes focus-visible polyfill as modern browsers no longer show focus rings for mouse interactions.

Close #2208
Fix #2138
Fix #2196
Fix #2007
Fix #1517
This commit is contained in:
Nicolas Gallagher
2022-02-28 12:19:33 -08:00
parent 174ebb3c5d
commit b27c9820db
77 changed files with 2558 additions and 2882 deletions

View File

@@ -4,18 +4,13 @@ const generator = require('inline-style-prefixer/lib/generator').default;
const path = require('path');
const browserList = {
chrome: 38,
android: 4,
firefox: 40,
ios_saf: 7,
safari: 7,
ie: 10,
ie_mob: 11,
edge: 12,
opera: 16,
op_mini: 12,
and_uc: 9,
and_chr: 38
and_chr: 49,
chrome: 49,
edge: 79,
firefox: 52,
ios_saf: 11,
opera: 50,
safari: 11
};
generator(browserList, {