Skip to content

Commit a22cb4b

Browse files
committed
[css-pseudo-4] Single-colon syntax applies also to ::first-letter and ::first-line. Fixes #2150
1 parent b34f6d4 commit a22cb4b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

css-pseudo-4/Overview.bs

+8-5
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,6 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
698698
may be included in any ''::first-line'' and ''::first-letter'' pseudo-elements
699699
applied to its <a>originating element</a>.
700700

701-
<p>For compatibility with existing style sheets written against CSS Level 2 [[CSS21]],
702-
user agents must also accept the previous one-colon notation
703-
(<code>:before</code> and <code>:after</code>)
704-
for these pseudo-elements.
705-
706701
<h3 id="marker-pseudo">
707702
List Markers: the ''::marker'' pseudo-element</h3>
708703

@@ -928,6 +923,14 @@ Addition to the <code>window</code> interface</h3>
928923
Its return value is a <code>CSSPseudoElementList</code>,
929924
potentially empty if no pseudo-element exists for the given element and the given type.
930925

926+
<h2 id="css2-compat">
927+
Compatibilitiy Syntax</h2>
928+
929+
<p>For compatibility with existing style sheets written against CSS Level 2 [[CSS21]],
930+
user agents must also accept the previous one-colon notation
931+
(<code>:before</code>, <code>:after</code>, <code>:first-letter</code>, <code>:first-line</code>)
932+
for the ''::before'', ''::after'', ''::first-letter'', and ''::first-line'' pseudo-elements.
933+
931934
<h2 class="no-num" id="changes">
932935
Changes</h2>
933936

0 commit comments

Comments
 (0)