@@ -210,6 +210,19 @@ Properties Applying to ''::marker''</h4>
210
210
All properties can be set on a ''::marker'' pseudo-element
211
211
and will have a [=computed value=]
212
212
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
+
213
226
However,
214
227
only the following CSS properties
215
228
actually apply to a [=marker box=] :
@@ -220,30 +233,19 @@ Properties Applying to ''::marker''</h4>
220
233
<li> all animation and transition properties (see [[CSS-ANIMATIONS-1]] and [[CSS-TRANSITIONS-1]] )
221
234
</ul>
222
235
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
-
228
236
Other properties should not have an effect on the [=marker box=]
229
237
when declared directly on ''::marker''
230
238
in the [=author origin|author=] or [=user origin=] of the [=cascade=] .
231
239
UAs may either treat such properties as not applying,
232
240
or enforce their value or inheritance from the [=originating element=]
233
241
by setting a [=user-agent origin=] ''!important'' rule.
234
242
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.
246
247
248
+ Additionally,
247
249
UAs must add the following rule to their default style sheet:
248
250
<pre>
249
251
::marker, ::before::marker, ::after::marker {
@@ -254,6 +256,12 @@ Properties Applying to ''::marker''</h4>
254
256
}
255
257
</pre>
256
258
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
+
257
265
Note: Although the ''::marker'' pseudo-element can represent
258
266
the [=marker box=] of a ''::before'' or ''::after'' pseudo-element,
259
267
the [=compound selector=] ''::marker'' ,
@@ -263,11 +271,6 @@ Properties Applying to ''::marker''</h4>
263
271
needs to be explicitly specified in the [=selector=] ,
264
272
e.g. ''::before::marker'' .
265
273
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> .
271
274
272
275
<h3 id='content-property'>
273
276
Generating Marker Contents</h3>
0 commit comments