Skip to content

Commit ddd7912

Browse files
committed
Define :only-child behaviour
1 parent 43e6671 commit ddd7912

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

css-view-transitions-1/Overview.bs

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
212212
When a [=pseudo-element=] |pseudo| is part of a [=pseudo-element parent=] |parent|'s [=pseudo-element parent/children=],
213213
then |pseudo|'s [=originating pseudo-element=] is |parent|.
214214

215+
If a [=pseudo-element parent=]'s [=pseudo-element parent/children=]'s [=list/size=] is 1, then '':only-child'' selects [=pseudo-element parent/children=][0].
216+
215217
<div algorithm>
216218
To get the <dfn for="pseudo-element parent">descendants</dfn> of a [=pseudo-element parent=] |parent|, perform the following steps.
217219
They return a [=/list=] of [=pseudo-elements=].

0 commit comments

Comments
 (0)