Skip to content

Commit 059a361

Browse files
committed
Made ::marker be "unicode-bidi:isolate" in the stylesheet, adjusting the wording for where outside markers get their base directionality.
1 parent dfc722b commit 059a361

2 files changed

Lines changed: 20 additions & 21 deletions

File tree

css3-lists/Overview.html

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -665,17 +665,15 @@ <h2 id=list-style-position-property><span class=secno>4. </span> Marker
665665
<dt><dfn id=outside>outside</dfn>
666666

667667
<dd>As &lsquo;<a href="#inside"><code class=css>inside</code></a>&rsquo;,
668-
plus the computed value of &lsquo;<code
669-
class=property>position</code>&rsquo; on the ::marker pseudo-element is
670-
&lsquo;<code class=css>marker</code>&rsquo;. The section on the new
671-
&lsquo;<code class=property>marker</code>&rsquo; value for &lsquo;<code
668+
plus the &lsquo;<code class=property>position</code>&rsquo; property on
669+
the ::marker pseudo-element must computer to &lsquo;<code
670+
class=css>marker</code>&rsquo;. The section on the new &lsquo;<code
671+
class=property>marker</code>&rsquo; value for &lsquo;<code
672672
class=property>position</code>&rsquo; explains the consequences of this.
673-
Additionally, the computed value of &lsquo;<code
674-
class=property>unicode-bidi</code>&rsquo; on the ::marker pseudo-element
675-
is &lsquo;<code class=css>isolate</code>&rsquo;, with the
676-
pseudo-element's base directionality taken from the parent of the
677-
marker's superior parent (in HTML, this will typically be the &lt;ul> or
678-
&lt;ol> that contains the &lt;li> generating the marker).
673+
Additionally, the base directionality of the ::marker pseudo-element
674+
(used as an input to the bidi resolution algorithm) must be taken from
675+
the marker's <a href="#marker-positioning-reference-element"><i>marker
676+
positioning reference element</i></a>.
679677
</dl>
680678

681679
<p>Note that a marker is only generated if the computed value of the
@@ -890,17 +888,17 @@ <h2 id=marker-pseudoelement><span class=secno>6. </span> Markers: The
890888
class=property>display</code>&rsquo; property to &lsquo;<code
891889
class=css>list-item</code>&rsquo; or &lsquo;<a
892890
href="#inline-list-item"><code
893-
class=css>inline-list-item</code></a>&rsquo;. The marker box is only
894-
created if the computed value of the &lsquo;<code
891+
class=css>inline-list-item</code></a>&rsquo;. The ::marker pseudo-element
892+
is only created if the computed value of the &lsquo;<code
895893
class=property>content</code>&rsquo; property for the pseudo-element is
896894
not &lsquo;<a href="#none"><code class=css>none</code></a>&rsquo;.
897895

898896
<p>Just like other generated content, markers generate a box when they're
899897
created, which has margins, border, padding, and everything else a box
900898
normally has. Markers are placed at the beginning of their superior
901899
parent's content, before the ::before pseudo-element (if it exists).
902-
Marker boxes are inline by default, though certain values for &lsquo;<a
903-
href="#list-style-position"><code
900+
::marker pseudoelements are inline by default, though certain values for
901+
&lsquo;<a href="#list-style-position"><code
904902
class=property>list-style-position</code></a>&rsquo; on the list item can
905903
make the marker box positioned, which can have an effect on the computed
906904
value of display.
@@ -1329,8 +1327,7 @@ <h3 id=marker-attachment><span class=secno>7.2. </span> The &lsquo;<a
13291327
href="#markers-associated-with-that-list-item"><i
13301328
title=associated-marker>associated markers</i></a> instead base their
13311329
positioning off of the directionality of the list item's parent element.
1332-
1333-
<p>The normative meaning of this is specified in the section defining <a
1330+
The normative meaning of this is specified in the section defining <a
13341331
href="#position-marker">position:marker</a>.</p>
13351332
<!-- ===================================================================== -->
13361333

@@ -4330,6 +4327,7 @@ <h2 id=html4><span class=secno>12. </span> Sample style sheet for HTML</h2>
43304327
display: inline;
43314328
margin-right: 1em;
43324329
text-align: end;
4330+
unicode-bidi: isolate;
43334331
/* 'position' computes to "static" or "marker" depending on list-style-position */
43344332
}
43354333
</pre>

css3-lists/Overview.src.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h2 id='list-style-position-property'>
333333
<dd>The ''::marker'' 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 ''::marker'' pseudo-element in this state, and this ''::marker'' box participates in the inline box model in the normal manner.</dd>
334334

335335
<dt><dfn>outside</dfn></dt>
336-
<dd>As ''inside'', plus the computed value of 'position' on the ::marker pseudo-element is ''marker''. The section on the new 'marker' value for 'position' explains the consequences of this. Additionally, the computed value of 'unicode-bidi' on the ::marker pseudo-element is ''isolate'', with the pseudo-element's base directionality taken from the parent of the marker's superior parent (in HTML, this will typically be the &lt;ul> or &lt;ol> that contains the &lt;li> generating the marker).</dd>
336+
<dd>As ''inside'', plus the 'position' property on the ::marker 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 ::marker pseudo-element (used as an input to the bidi resolution algorithm) must be taken from the marker's <i>marker positioning reference element</i>.</dd>
337337
</dl>
338338

339339
<p>Note that a marker is only generated if the computed value of the 'content'
@@ -497,11 +497,11 @@ <h2 id='marker-pseudoelement'>
497497
Markers: The ''::marker'' pseudo-element</h2>
498498

499499
<p>Markers are created by setting an element's 'display' property to
500-
''list-item'' or ''inline-list-item''. The marker box is only created if
500+
''list-item'' or ''inline-list-item''. The ::marker pseudo-element is only created if
501501
the computed value of the 'content' property for the pseudo-element is not
502502
''none''.</p>
503503

504-
<p>Just like other generated content, markers generate a box when they're created, which has margins, border, padding, and everything else a box normally has. Markers are placed at the beginning of their superior parent's content, before the ::before pseudo-element (if it exists). Marker boxes are inline by default, though certain values for 'list-style-position' on the list item can make the marker box positioned, which can have an effect on the computed value of display.</p>
504+
<p>Just like other generated content, markers generate a box when they're created, which has margins, border, padding, and everything else a box normally has. Markers are placed at the beginning of their superior parent's content, before the ::before pseudo-element (if it exists). ::marker pseudoelements are inline by default, though certain values for 'list-style-position' on the list item can make the marker box positioned, which can have an effect on the computed value of display.</p>
505505

506506
<div class="example">
507507
<p>In the following example, the content is centered within a marker
@@ -793,9 +793,9 @@ <h3 id='marker-attachment'>
793793
<td>specified value
794794
</table>
795795

796-
<p>When a list item has ''marker-attachment:list-item'', any <i title='associated-marker'>markers associated with the list item</i> base their positioning off of the directionality of the list item. When a list item has ''marker-attachment:list-container'', the <i title='associated-marker'>associated markers</i> instead base their positioning off of the directionality of the list item's parent element.</p>
796+
<p>When a list item has ''marker-attachment:list-item'', any <i title='associated-marker'>markers associated with the list item</i> base their positioning off of the directionality of the list item. When a list item has ''marker-attachment:list-container'', the <i title='associated-marker'>associated markers</i> instead base their positioning off of the directionality of the list item's parent element. The normative meaning of this is specified in the section defining <a href="#position-marker">position:marker</a>.</p>
797+
797798

798-
<p>The normative meaning of this is specified in the section defining <a href="#position-marker">position:marker</a>.</p>
799799

800800
<!-- ===================================================================== -->
801801

@@ -3259,6 +3259,7 @@ <h2 id="html4">
32593259
display: inline;
32603260
margin-right: 1em;
32613261
text-align: end;
3262+
unicode-bidi: isolate;
32623263
/* 'position' computes to "static" or "marker" depending on list-style-position */
32633264
}
32643265
</pre>

0 commit comments

Comments
 (0)