Skip to content

Commit 67f8681

Browse files
committed
[css-pseudo-4] Clarify that the marker of a list-item ::before/::after pseudo-element can be selected, but not with '::marker' because that expands to '*::marker' and * doesn't match pseudos. w3c#3826 w3c#3766
1 parent 31996d2 commit 67f8681

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

css-lists-3/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Declaring a List Item</h2>
9090
Markers</h2>
9191

9292
The defining feature of the <a>list item</a> <a>display type</a>
93-
is its <dfn lt="marker | marker box">marker</dfn>,
93+
is its <dfn lt="marker | marker box" export>marker</dfn>,
9494
a symbol or ordinal that helps denote the beginning of each <a>list item</a> in a list.
9595
In the CSS layout model,
9696
<a>list item</a> <a>markers</a> are represented by

css-pseudo-4/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:fill-stroke-3; type:property; text:stroke-width
4545
and how they can be styled.
4646
For more information on pseudo-elements in general,
4747
and on their syntax and interaction with other <a>selectors</a>,
48-
see [[!SELECTORS4]].
48+
see [[!SELECTORS-4]].
4949

5050
<h2 id="typographic-pseudos">
5151
Typographic Pseudo-elements</h2>
@@ -731,8 +731,8 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
731731
List Markers: the ''::marker'' pseudo-element</h3>
732732

733733
The <dfn>::marker</dfn> pseudo-element represents
734-
the automatically generated marker box of a list item.
735-
(See ''display: list-item''.)
734+
the automatically generated [=marker box=] of a [=list item=].
735+
(See [[CSS-DISPLAY-3]] and [[CSS-LISTS-3]].)
736736

737737
The following CSS properties apply to a ''::marker'' pseudo-element:
738738
<ul>
@@ -755,6 +755,15 @@ List Markers: the ''::marker'' pseudo-element</h3>
755755
}
756756
</pre>
757757

758+
Note: Although the ''::marker'' pseudo-element can represent
759+
the [=marker box=] of a ''::before'' or ''::after'' pseudo-element,
760+
the [=compound selector=] ''::marker'',
761+
which expands to ''*::marker'' [[SELECTORS-4]],
762+
will not select these markers--
763+
an [=originating element=] that is a [=pseudo-element=]
764+
needs to be explicitly specified in the [=selector=],
765+
e.g. ''::before::marker''.
766+
758767
<h3 id="placeholder-pseudo">
759768
Placeholder Input: the ''::placeholder'' pseudo-element</h3>
760769

0 commit comments

Comments
 (0)