[scroll-animations] Clarify proximity with nested @scope rules (#8722) · w3c/csswg-drafts@14969b2 (original) (raw)

`@@ -154,11 +154,6 @@ Cascade Sorting Order

`

154

154

` then the declaration with the fewest generational hops

`

155

155

` between the ancestor/descendant element pair wins.

`

156

156

``

157

``

`-

If multiple such pairs are represented,

`

158

``

`-

their [=scoping proximity=] weights are compared

`

159

``

`-

from innermost scoping relationship to outermost scoping relationship

`

160

``

`-

(with any missing pairs weighted as infinity).

`

161

``

-

162

157

`

Order of Appearance

`

163

158

`

`

164

159

` The last declaration in document order wins.

`

`@@ -321,6 +316,9 @@ Effects of ''@scope''

`

321

316

` selectors within an ''@scope'' rule

`

322

317

` do not acquire the specificity of any parent selector(s) in the ''@scope'' prelude.

`

323

318

``

``

319

`+

Note: For [[#scope-scope|nested @scope rules]],

`

``

320

`+

only the innermost ''@scope'' matters for determining [=scoping proximity=].

`

``

321

+

324

322

`

`

325

323

` The following selectors have the same specificity (0,0,1):

`

326

324

``