-
|
I'm curious why it has to be enabled. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
necolas
Jan 6, 2024
Replies: 2 comments
-
|
Because layers isn't supported in older browsers so we use a polyfill by default |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nmn
-
|
Additionally, the way that CSS layers work, any "unlayered" styles will override layered styles. This means that a lot of people are confused when their "reset" styles override StyleX styles. Using native CSS layer may look cleaner, but the polyfill actually causes fewer surprises. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because layers isn't supported in older browsers so we use a polyfill by default