Skip to content

Commit c93430c

Browse files
committed
[css-lists-3] Reorder notes and examples.
1 parent 2df5dae commit c93430c

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

css-lists-3/Overview.bs

+24-21
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,19 @@ Properties Applying to ''::marker''</h4>
210210
All properties can be set on a ''::marker'' pseudo-element
211211
and will have a [=computed value=]
212212
which will then inherit to its text content.
213+
214+
<div class=example>
215+
Inheritable properties that apply to text
216+
can be set on the ''::marker'' pseudo-element:
217+
these will inherit to and take effect on its text contents.
218+
Some examples of such properties include:
219+
<ul>
220+
<li>'text-transform', 'letter-spacing', 'word-spacing' (see [[CSS-TEXT-3]])
221+
<li>all the font properties (see [[CSS-FONTS-3]] and its successors)
222+
<li>the 'color' property (see [[CSS-COLOR-3]])
223+
</ul>
224+
</div>
225+
213226
However,
214227
only the following CSS properties
215228
actually apply to a [=marker box=]:
@@ -220,30 +233,19 @@ Properties Applying to ''::marker''</h4>
220233
<li>all animation and transition properties (see [[CSS-ANIMATIONS-1]] and [[CSS-TRANSITIONS-1]])
221234
</ul>
222235

223-
<p class="note">
224-
It is expected that future specifications will extend this list of properties;
225-
however at the moment outside marker box layout is not fully defined,
226-
so only these properties are allowed.
227-
228236
Other properties should not have an effect on the [=marker box=]
229237
when declared directly on ''::marker''
230238
in the [=author origin|author=] or [=user origin=] of the [=cascade=].
231239
UAs may either treat such properties as not applying,
232240
or enforce their value or inheritance from the [=originating element=]
233241
by setting a [=user-agent origin=] ''!important'' rule.
234242

235-
<div class=example>
236-
Inheritable properties that apply to text
237-
can be set on the ''::marker'' pseudo-element:
238-
these will inherit to and take effect on its text contents.
239-
Some examples of such properties include:
240-
<ul>
241-
<li>'text-transform', 'letter-spacing', 'word-spacing' (see [[CSS-TEXT-3]])
242-
<li>all the font properties (see [[CSS-FONTS-3]] and its successors)
243-
<li>the 'color' property (see [[CSS-COLOR-3]])
244-
</ul>
245-
</div>
243+
NOTE: It is expected that future specifications will extend this list of properties
244+
and relax the restriction on which properties can take effect.
245+
However at the moment outside marker box layout is not fully defined,
246+
so to avoid future compatibility problems only these properties are allowed.
246247

248+
Additionally,
247249
UAs must add the following rule to their default style sheet:
248250
<pre>
249251
::marker, ::before::marker, ::after::marker {
@@ -254,6 +256,12 @@ Properties Applying to ''::marker''</h4>
254256
}
255257
</pre>
256258

259+
ISSUE: ''white-space: pre'' doesn't have quite the right behavior;
260+
''text-space-collapse: preserve-spaces'' + ''text-space-trim: discard-after''
261+
might be closer to what's needed here.
262+
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/4448">Issue 4448</a>
263+
and <a href="https://github.com/w3c/csswg-drafts/issues/4891">Issue 4891</a>.
264+
257265
Note: Although the ''::marker'' pseudo-element can represent
258266
the [=marker box=] of a ''::before'' or ''::after'' pseudo-element,
259267
the [=compound selector=] ''::marker'',
@@ -263,11 +271,6 @@ Properties Applying to ''::marker''</h4>
263271
needs to be explicitly specified in the [=selector=],
264272
e.g. ''::before::marker''.
265273

266-
ISSUE: ''white-space: pre'' doesn't have quite the right behavior;
267-
''text-space-collapse: preserve-spaces'' + ''text-space-trim: discard-after''
268-
might be closer to what's needed here.
269-
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/4448">Issue 4448</a>
270-
and <a href="https://github.com/w3c/csswg-drafts/issues/4891">Issue 4891</a>.
271274

272275
<h3 id='content-property'>
273276
Generating Marker Contents</h3>

0 commit comments

Comments
 (0)