Skip to content

Commit 5ed5940

Browse files
committed
[css-pseudo-4] Define CSSPseudoElement.pseudo() #3836
1 parent a655afd commit 5ed5940

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css-pseudo-4/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,7 @@ Additions to the CSS Object Model</h2>
11941194
readonly attribute CSSOMString type;
11951195
readonly attribute Element element;
11961196
readonly attribute (Element or CSSPseudoElement) parent;
1197+
CSSPseudoElement? pseudo(CSSOMString type);
11971198
};
11981199
</pre>
11991200

@@ -1226,6 +1227,13 @@ Additions to the CSS Object Model</h2>
12261227
{{CSSPseudoElement/parent}} will return a {{CSSPseudoElement}}
12271228
while {{CSSPseudoElement/element}} returns an {{Element}}.
12281229

1230+
The <dfn attribute for=CSSPseudoElement>pseudo()</dfn> method
1231+
returns the {{CSSPseudoElement}} interface
1232+
representing the [=sub-pseudo-element=] referenced in its argument,
1233+
if such a [=sub-pseudo-element=] could exist and would be valid,
1234+
and null otherwise.
1235+
See {{Element/pseudo()}} below.
1236+
12291237
Note: This interface may be extended in the future
12301238
to other pseudo-element types
12311239
and/or to allow setting style information

0 commit comments

Comments
 (0)