mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
> ### 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
27 lines
322 B
CSS
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;
|
|
}
|
|
}
|