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
It is not clear whether @scope allows other CSS rules.
The syntax of the @scope rule is @scope [(<scope-start>)]? [to (<scope-end>)]? { <stylesheet> } where [...] <stylesheet> represents the scoped style rules.
All @scope examples in CSS Cascade 6 include (scoped) style rules.
Finally, the <stylesheet> production represents a list of rules. It is identical to <rule-list>, except that blocks using it default to accepting all rules that aren’t otherwise limited to a particular context.
For rules that use <stylesheet>, all rules are allowed by default, but the spec for the rule may define what types of rules are invalid inside the rule.
Global name-defining at-rules such as @keyframes or @font-face or @layer that are defined inside @scope are valid but are not scoped or otherwise affected by the enclosing @scope rule. However, any style rules contained by such rules (e.g. within @layer) are scoped.
I guess the meaning of <stylesheet> represents the scoped style rules is that @scope only creates scope for style rules.
Uh oh!
There was an error while loading. Please reload this page.
It is not clear whether
@scope
allows other CSS rules.https://drafts.csswg.org/css-cascade-6/#scope-syntax
All
@scope
examples in CSS Cascade 6 include (scoped) style rules.https://drafts.csswg.org/css-syntax-3/#rule-defs
The text was updated successfully, but these errors were encountered: