Skip to content

Commit 75c4d3e

Browse files
[css-pseudo] Extend CSSPseudoElement to all standardized non-element-backed tree-abiding pseudo-elements (w3c#13940)
* [css-pseudo] Extend CSSPseudoElement to all standardized non-element-backed tree-abiding pseudo-elements * Reject non-tree-abiding pseudos Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 115233b commit 75c4d3e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

css-pseudo-4/Overview.bs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,9 @@ Additions to the CSS Object Model</h2>
18101810

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

18151817
<dl>
18161818
<dt><code>"::before"</code>
@@ -1819,6 +1821,10 @@ Additions to the CSS Object Model</h2>
18191821
<dd>Represents the ''::after'' pseudo-element.
18201822
<dt><code>"::marker"</code>
18211823
<dd>Represents the ''::marker'' pseudo-element.
1824+
<dt><code>"::backdrop"</code>
1825+
<dd>Represents the ''::backdrop'' pseudo-element.
1826+
<dt><code>"::view-transition"</code>
1827+
<dd>Represents the ''::view-transition'' pseudo-element.
18221828
</dl>
18231829

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

1884-
3. Otherwise, return the {{CSSPseudoElement}} object
1890+
3. If |type| is an [=element-backed pseudo-element=],
1891+
return null.
1892+
1893+
4. If |type| is not a [=tree-abiding pseudo-element=],
1894+
return null.
1895+
1896+
5. Otherwise, return the {{CSSPseudoElement}} object
18851897
representing the pseudo-element
18861898
that would match the selector |type|
18871899
with [=this=] as its [=originating element=].

0 commit comments

Comments
 (0)