diff --git a/css-cascade-6/Overview.bs b/css-cascade-6/Overview.bs index 3907b3ed6eb..57cbd3bd567 100644 --- a/css-cascade-6/Overview.bs +++ b/css-cascade-6/Overview.bs @@ -328,6 +328,13 @@ Effects of ''@scope'' * The [=style rules=] in an ''@scope'' <> are [=scoped style rules=]. + * The '':scope'' selector is defined to match + the ''@scope'' rule’s [=scoping root=]. + The ''&'' selector is defined to represent + the selector representing the [=scoping root=] + (the [=scope-start selector=]), + or else '':scope'' if no selector was specified. + * The [=cascade=] prioritizes declarations with a [=scope proximity|more proximate=] [=scoping root=], regardless of specificity or source order @@ -381,6 +388,17 @@ Scoped Style Rules (This only applies to the [=subject=]; the rest of the selector can match unrestricted.) + * They accept a <> as their prelude + (rather than just a <>). + Such [=relative selectors=] + are relative to '':scope''. + + * Any selector in the <> + that does not start with a [=combinator=] + but does [=contain the nesting selector=] or the '':scope'' selector, + is interpreted as a non-[=relative selector=] + (but the [=subject=] must still be [=in scope=] to match). +

Identifying Scoping Roots and Limits

@@ -394,12 +412,15 @@ Identifying Scoping Roots and Limits of the stylesheet where the ''@scope'' rule is defined. (If no such element exists, then the [=scoping root=] is the [=root=] of the containing [=node tree=].) + Any '':scope'' or ''&'' selectors in <> + are interpreted as defined for its outer context. : Finding any [=scoping limits=] :: For each [=scope=] created by a [=scoping root=], its [=scoping limits=] are set to all elements that are [=in scope=] and that match <>, - using the [=scoping root=] as the '':scope'' element. + interpreting '':scope'' and ''&'' + exactly as in [=scoped style rules=].
The following selectors have the same specificity (0,0,1):