-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Description
It is not clear whether @scope allows other CSS rules.
The syntax of the
@scoperule is@scope [(<scope-start>)]? [to (<scope-end>)]? { <stylesheet> }where [...]<stylesheet>represents the scoped style rules.
https://drafts.csswg.org/css-cascade-6/#scope-syntax
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.