Files
JasonandGitHub 1b0de405f4 feat(css/ast): Support @scope at-rule (#7837)
> ### Describe the feature
> [Chrome 118 is shipping
soon](https://chromium-review.googlesource.com/c/chromium/src/+/4790561),
which is expected to be one of the more popular CSS features, giving new
hope for style isolation of components.
> 
> * Explainer https://css.oddbird.net/scope/explainer
> * Specification https://drafts.csswg.org/css-cascade-6/#scope-atrule
> 

Closed: #7836
2023-08-24 08:18:35 +00:00

27 lines
322 B
CSS

@scope {
a {
color: darkmagenta;
}
}
@scope (.light-scheme) {
a {
color: darkmagenta;
}
}
@scope to (.content > *) {
img {
border-radius: 50%;
}
.content {
padding: 1em;
}
}
@scope (.media-object) to (.content > *) {
img {
border-radius: 50%;
}
.content {
padding: 1em;
}
}