File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1193,6 +1193,7 @@ Additions to the CSS Object Model</h2>
11931193 interface CSSPseudoElement : EventTarget {
11941194 readonly attribute CSSOMString type;
11951195 readonly attribute Element element;
1196+ readonly attribute (Element or CSSPseudoElement) parent;
11961197 };
11971198 </pre>
11981199
@@ -1214,7 +1215,16 @@ Additions to the CSS Object Model</h2>
12141215 </dl>
12151216
12161217 The <dfn attribute for=CSSPseudoElement>element</dfn> attribute is the
1218+ [=ultimate originating element=] of the [=pseudo-element=] .
1219+
1220+ The <dfn attribute for=CSSPseudoElement>parent</dfn> attribute is the
12171221 [=originating element=] of the pseudo-element.
1222+ For most pseudo-elements
1223+ {{CSSPseudoElement/parent}} and {{CSSPseudoElement/element}}
1224+ will return the same {{Element}} ;
1225+ for [=sub-pseudo-elements=] ,
1226+ {{CSSPseudoElement/parent}} will return a {{CSSPseudoElement}}
1227+ while {{CSSPseudoElement/element}} returns an {{Element}} .
12181228
12191229 Note: This interface may be extended in the future
12201230 to other pseudo-element types
You can’t perform that action at this time.
0 commit comments