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
<style>
@scope (.foo) to (.limit) {
.green { background-color: green; }
}
</style><divclass=foo><divclass=green>Green</div><divclass=limit><divclass=green>Not green (within .foo, but below .limit)</div></div></div><divclass=green>Not green (not within .foo)</div>
Authors can also automatically scope the styles to <style>’s parent element by dropping the selector(s) in @scope’s prelude:
Describe the feature
Chrome 118 is shipping soon, which is expected to be one of the more popular CSS features, giving new hope for style isolation of components.
Example:
Authors can also automatically scope the styles to
<style>
’s parent element by dropping the selector(s) in@scope
’s prelude:The text was updated successfully, but these errors were encountered: