@@ -838,13 +838,14 @@ Interface CSSPseudoElement</h3>
838
838
[Exposed=Window]
839
839
interface CSSPseudoElement {
840
840
readonly attribute CSSOMString <a href="#dom-csspseudochild-type">type</a> ;
841
+ readonly attribute Element element;
841
842
readonly attribute <a href="https://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration">CSSStyleDeclaration</a> <a href="#dom-csspseudochild-style">style</a> ;
842
843
};
843
844
844
845
CSSPseudoElement implements EventTarget;
845
846
</pre>
846
847
847
- The <dfn id="dom-csspseudochild-type" >type</dfn> attribute
848
+ The <dfn attribute for=CSSPseudoElement >type</dfn> attribute
848
849
is a string representing the type of the pseudo-element.
849
850
This can be one of the following values:
850
851
@@ -863,7 +864,10 @@ Interface CSSPseudoElement</h3>
863
864
864
865
Issue: Why are these strings different from the name of the pseudo-element?
865
866
866
- The <dfn id="dom-csspseudochild-style">style</dfn> attribute
867
+ The <dfn attribute for=CSSPseudoElement>element</dfn> attribute is the
868
+ [=originating element=] of the pseudo-element.
869
+
870
+ The <dfn attribute for=CSSPseudoElement>style</dfn> attribute
867
871
is a <code> CSSStyleDeclaration</code> [[!CSSOM]]
868
872
that allows directly setting style information (inline styles) onto the pseudo-element.
869
873
Inline styles on a <code> CSSPseudoElement</code> have precedence over all
@@ -949,6 +953,8 @@ Changes</h2>
949
953
<li> Links to pseudo-element OM design discussions.
950
954
<li> Various minor clarifications.
951
955
<li> Use ''spelling-error'' and ''grammar-error'' with ''::spelling-error'' and ''::grammar-error'' in the UA stylesheet.
956
+ <li> Added the {{CSSPseudoElement/element}} attribute to the
957
+ {{CSSPseudoElement}} interface.
952
958
</ul>
953
959
954
960
<h2 class="no-num" id="acknowledgements">
0 commit comments