You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the text is black on white. I believe this is because the polyfill uses css variables which do not recompute if child elements change any of the input variables, where as light-dark seems to do. You currently need to re-apply the :root theme variables on every element that changes color-scheme
The text was updated successfully, but these errors were encountered:
If you take the following HTML
And apply the following CSS:
The text changes to white text on black background, as expected because
color-scheme
is set todark
.However, change this to the transpiled CSS generated by lightningcss
And the text is black on white. I believe this is because the polyfill uses css variables which do not recompute if child elements change any of the input variables, where as
light-dark
seems to do. You currently need to re-apply the:root
theme variables on every element that changescolor-scheme
The text was updated successfully, but these errors were encountered: