Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,9 @@ Additions to the CSS Object Model</h2>

The <dfn attribute for=CSSPseudoElement>type</dfn> attribute
is a string representing the type of the pseudo-element.
This can be one of the following values:
This can be any standardized [=tree-abiding pseudo-element=]
that is not an [=element-backed pseudo-element=],
for example:

<dl>
<dt><code>"::before"</code>
Expand All @@ -1819,6 +1821,10 @@ Additions to the CSS Object Model</h2>
<dd>Represents the ''::after'' pseudo-element.
<dt><code>"::marker"</code>
<dd>Represents the ''::marker'' pseudo-element.
<dt><code>"::backdrop"</code>
<dd>Represents the ''::backdrop'' pseudo-element.
<dt><code>"::view-transition"</code>
<dd>Represents the ''::view-transition'' pseudo-element.
</dl>

The <dfn attribute for=CSSPseudoElement>element</dfn> attribute is the
Expand Down Expand Up @@ -1881,7 +1887,13 @@ Additions to the CSS Object Model</h2>
2. If |type| is failure,
return null.

3. Otherwise, return the {{CSSPseudoElement}} object
3. If |type| is an [=element-backed pseudo-element=],
return null.

4. If |type| is not a [=tree-abiding pseudo-element=],
return null.

5. Otherwise, return the {{CSSPseudoElement}} object
representing the pseudo-element
that would match the selector |type|
with [=this=] as its [=originating element=].
Expand Down