Skip to content

Commit 2dbf1e4

Browse files
committed
[css-pseudo-4] Add CSSPseudoElement.element attribute
Fixes #2816.
1 parent 8922e75 commit 2dbf1e4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

css-pseudo-4/Overview.bs

+8-2
Original file line numberDiff line numberDiff line change
@@ -838,13 +838,14 @@ Interface CSSPseudoElement</h3>
838838
[Exposed=Window]
839839
interface CSSPseudoElement {
840840
readonly attribute CSSOMString <a href="#dom-csspseudochild-type">type</a>;
841+
readonly attribute Element element;
841842
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>;
842843
};
843844

844845
CSSPseudoElement implements EventTarget;
845846
</pre>
846847

847-
The <dfn id="dom-csspseudochild-type">type</dfn> attribute
848+
The <dfn attribute for=CSSPseudoElement>type</dfn> attribute
848849
is a string representing the type of the pseudo-element.
849850
This can be one of the following values:
850851

@@ -863,7 +864,10 @@ Interface CSSPseudoElement</h3>
863864

864865
Issue: Why are these strings different from the name of the pseudo-element?
865866

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
867871
is a <code>CSSStyleDeclaration</code> [[!CSSOM]]
868872
that allows directly setting style information (inline styles) onto the pseudo-element.
869873
Inline styles on a <code>CSSPseudoElement</code> have precedence over all
@@ -949,6 +953,8 @@ Changes</h2>
949953
<li>Links to pseudo-element OM design discussions.
950954
<li>Various minor clarifications.
951955
<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.
952958
</ul>
953959

954960
<h2 class="no-num" id="acknowledgements">

0 commit comments

Comments
 (0)