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
<p>This property specifies the position of the <codeclass=css>::marker</code> pseudo-element's box
366
-
in the <i>list item</i>. Values have the following meanings:
365
+
<p>
366
+
This property helps control the position of the ''::marker'' pseudo-element in the <i>list item</i>.
367
+
The values are defined as follows:
367
368
368
369
<dl>
369
-
<dt><dfn>inside</dfn>
370
-
<dd>The <codeclass=css>::marker</code> pseudo-element is a 'display:inline' element placed immediately before the ''::before'' pseudo-element in the <i>list item</i>'s principle box, after which the element's content flows. Note that if there is no inline content, this will create a line box, just as content in an inline ''::before'' pseudo-element would. Also note that all the properties that apply to inline elements apply to the <codeclass=css>::marker</code> pseudo-element in this state, and this <codeclass=css>::marker</code> box participates in the inline box model in the normal manner.
The ''::marker'' pseudo-element is an inline element placed immediately before where the ''::before'' pseudo-element would be placed in the <i>list item</i>.
371
373
372
-
<dt><dfn>outside</dfn>
373
-
<dd>As ''inside'', plus the 'position' property on the <codeclass=css>::marker</code> pseudo-element must computer to ''marker''. The section on the new 'marker' value for 'position' explains the consequences of this. Additionally, the base directionality of the <codeclass=css>::marker</code> pseudo-element (used as an input to the bidi resolution algorithm) must be taken from the marker's <i>marker positioning reference element</i>.
As ''inside'', plus the 'position' property on the marker computes to ''marker''.
377
+
Additionally, the base directionality of the marker
378
+
(used as an input to the bidi resolution algorithm)
379
+
must be taken from the marker's <i>marker positioning reference element</i>.
380
+
381
+
<p>
382
+
If the <i>list item</i> is ''display: inline-list-item'',
383
+
this value computes to ''inside''.
374
384
</dl>
375
385
376
-
<p>Note that a marker is only generated if the computed value of the 'content'
377
-
property for the element's <codeclass=css>::marker</code> pseudo-element is not ''none''.
378
-
379
-
<pclass='issue'>Should I make this always compute to ''inside'' when the list item is ''display:inline-list-item''? See the thread at <ahref="http://lists.w3.org/Archives/Public/www-style/2011Jun/0232.html">http://lists.w3.org/Archives/Public/www-style/2011Jun/0232.html</a>.
386
+
<pclass='note'>
387
+
Note that a marker is only generated
388
+
if the used value of the 'content' property for the ''::marker'' pseudo-element is not ''none''.
380
389
381
390
<divclass=example>
382
391
<p>For example:
383
392
384
-
<pre>
385
-
<style>
386
-
ul.compact { list-style: inside; }
387
-
ul { list-style: outside; }
388
-
</style>
389
-
<ul class=compact>
390
-
<li>first "inside" list item comes first</li>
391
-
<li>second "inside" list item comes first</li>
392
-
</ul>
393
-
<hr>
394
-
<ul>
395
-
<li>first "outside" list item comes first</li>
396
-
<li>second "outside" list item comes first</li>
397
-
</ul></pre>
393
+
<pre><!--
394
+
--><style>
<!--
395
+
-->ul.compact { list-style: inside; }
<!--
396
+
-->ul { list-style: outside; }
<!--
397
+
--></style>
<!--
398
+
--><ul class=compact>
<!--
399
+
--><li>first "inside" list item comes first</li>
<!--
400
+
--><li>second "inside" list item comes first</li>
<!--
401
+
--></ul>
<!--
402
+
--><hr>
<!--
403
+
--><ul>
<!--
404
+
--><li>first "outside" list item comes first</li>
<!--
405
+
--><li>second "outside" list item comes first</li>
<!--
0 commit comments