diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs index b39efd856fb5..bb3f6b70148b 100644 --- a/css-pseudo-4/Overview.bs +++ b/css-pseudo-4/Overview.bs @@ -1760,6 +1760,7 @@ Additions to the CSS Object Model readonly attribute CSSOMString type; readonly attribute Element element; readonly attribute (Element or CSSPseudoElement) parent; + readonly attribute CSSOMString selectorText; CSSPseudoElement? pseudo(CSSOMString type); }; @@ -1793,6 +1794,15 @@ Additions to the CSS Object Model {{CSSPseudoElement/parent}} will return a {{CSSPseudoElement}} while {{CSSPseudoElement/element}} returns an {{Element}}. + The selectorText attribute + is a string representing the full, normalized selector text + used to select the pseudo-element. + This includes the pseudo-element name and any arguments, + serialized in a form that can round-trip. + For example, "::after" for a ''::after'' pseudo-element, + or "::scroll-button(left)" for a ''::scroll-button()'' pseudo-element + with a left argument. + The pseudo(type) method returns the {{CSSPseudoElement}} interface representing the [=sub-pseudo-element=] referenced in its argument,