You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="note">If another styling language becomes supported in user agents, this specification is expected to be updated as necessary.
295
295
296
+
<p>The terms <dfnid="x::before-pseudo-element">::before pseudo-element</dfn> and <dfnid="x::after-pseudo-element">::after pseudo-element</dfn> refer to the :before and :after pseudo-elements in CSS, except in this
297
+
specification the pseudo-elements are assumed to exist for all elements even if no box is generated for them. <ahref="#refsCSS">[CSS]</a>
<p>The <dfnid="dom-element-pseudo" title="dom-Element-pseudo"><code>pseudo(<vartitle="">pseudoElt</var>)</code></dfn> method, when invoked, must run the following steps:
2742
2745
<ol>
2743
2746
<li><p>If <vartitle="">pseudoElt</var> is as an <aclass="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for either '<codetitle="">:before</code>' or
2744
-
'<codetitle="">::before</code>' return the <code><ahref="#pseudoelement">PseudoElement</a></code> representing the '::before' pseudo-element of the <aclass="external" href="http://dom.spec.whatwg.org/#context-object">context
2745
-
object</a>.</li>
2747
+
'<codetitle="">::before</code>' return the <code><ahref="#pseudoelement">PseudoElement</a></code> representing the <ahref="#x::before-pseudo-element">::before pseudo-element</a> of the
<li><p>If <vartitle="">pseudoElt</var> is as an <aclass="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for either '<codetitle="">:after</code>' or
2747
-
'<codetitle="">::after</code>' return the <code><ahref="#pseudoelement">PseudoElement</a></code> representing the '::after' pseudo-element of the <aclass="external" href="http://dom.spec.whatwg.org/#context-object">context
2748
-
object</a>.</li>
2750
+
'<codetitle="">::after</code>' return the <code><ahref="#pseudoelement">PseudoElement</a></code> representing the <ahref="#x::after-pseudo-element">::after pseudo-element</a> of the
<p>When invoked with an argument that returns a <code><ahref="#pseudoelement">PseudoElement</a></code> object representing a particular pseudo-element, the same object must be
Copy file name to clipboardExpand all lines: cssom/Overview.src.html
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,9 @@ <h2>Terminology</h2>
224
224
225
225
<pclass=note>If another styling language becomes supported in user agents, this specification is expected to be updated as necessary.
226
226
227
+
<p>The terms <dfn>::before pseudo-element</dfn> and <dfn>::after pseudo-element</dfn> refer to the :before and :after pseudo-elements in CSS, except in this
228
+
specification the pseudo-elements are assumed to exist for all elements even if no box is generated for them. <spandata-anolis-ref>CSS</span>
229
+
227
230
<h3>Common Serializing Idioms</h3>
228
231
229
232
<p>To <dfn>escape a character</dfn> means to create a string of
@@ -2584,12 +2587,12 @@ <h3>Extensions to the <code title>Window</code> Interface</h3>
2584
2587
<li><p>If <vartitle>pseudoElt</var> is as an
2585
2588
<spandata-anolis-spec=dom>ASCII case-insensitive</span> match for
2586
2589
either '<codetitle>:before</code>' or '<codetitle>::before</code>' let
2587
-
<vartitle>obj</var> be the '::before' pseudo-element of
2590
+
<vartitle>obj</var> be the <span>::before pseudo-element</span> of
2588
2591
<vartitle>elt</var>.</p></li>
2589
2592
<li><p>If <vartitle>pseudoElt</var> is as an
2590
2593
<spandata-anolis-spec=dom>ASCII case-insensitive</span> match for
2591
2594
either '<codetitle>:after</code>' or '<codetitle>::after</code>' let
2592
-
<vartitle>obj</var> be the '::after' pseudo-element of
2595
+
<vartitle>obj</var> be the <span>::after pseudo-element</span> of
2593
2596
<vartitle>elt</var>.</p></li>
2594
2597
<li>
2595
2598
<p>Return a <span>CSS declaration block</span> with the
@@ -2672,11 +2675,11 @@ <h3>Extensions to the <code title>Element</code> Interface</h3>
2672
2675
<p>The <dfntitle=dom-Element-pseudo><code>pseudo(<vartitle>pseudoElt</var>)</code></dfn> method, when invoked, must run the following steps:
2673
2676
<ol>
2674
2677
<li><p>If <vartitle>pseudoElt</var> is as an <spandata-anolis-spec=dom>ASCII case-insensitive</span> match for either '<codetitle>:before</code>' or
2675
-
'<codetitle>::before</code>' return the <code>PseudoElement</code> representing the '::before' pseudo-element of the<spandata-anolis-spec=dom>context
2676
-
object</span>.</p></li>
2678
+
'<codetitle>::before</code>' return the <code>PseudoElement</code> representing the <span>::before pseudo-element</span> of the
0 commit comments