Enable :root
selector for native-shadow-only CSS
#4832
Labels
enhancement
Up for grabs
Issues that are relatively small, self-contained, and ready for implementation
Originally we disallowed using the
:root
selector because it doesn't work in synthetic shadow DOM. Trying to use it in CSS results in the error:Now that we have
disableSyntheticShadowSupport
, though, we could conceivably relax this rule for CSS that only targets native shadow DOM.Or we could have the selector somehow throw an error at runtime only when rendered in synthetic shadow DOM.Edit: nah, let's just rely ondisableSyntheticShadowSupport
.The text was updated successfully, but these errors were encountered: