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
Copy file name to clipboardExpand all lines: css3-lists/Overview.src.html
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -703,6 +703,44 @@ <h3 id='position-marker'>
703
703
704
704
<p>The 'top', 'right', 'bottom', and 'left' properties specify offsets relative to the top, right, bottom, and left edges (respectively) of the element itself, similar to how relative positioning works.</p>
705
705
706
+
<divclass='example'>
707
+
<p>''position:marker'' can be used when the precise list marker is important for the content, not a stylistic choice, but the normal <em>appearance</em> of lists is still desired. For example, this trimmed snippet of the US Code of Laws may be marked up as the following in HTML:</p>
708
+
709
+
<pre>
710
+
<style>
711
+
ol { list-style: none; }
712
+
.marker { position: marker; }
713
+
</style>
714
+
<ol>
715
+
<li>
716
+
<span class='marker'>(a)</span> Definitions.— For purposes of this section—
717
+
<ol>
718
+
<li><span class='marker'>(1)</span> the term “agency” means agency as...</li>
719
+
<li><span class='marker'>(2)</span> the term “individual” means a citizen...</li>
720
+
</ol>
721
+
</li>
722
+
<li>
723
+
<span class='marker'>(b)</span> Conditions of Disclosure.— No agency shall disclose...
724
+
<ol>
725
+
<li><span class='marker'>(1)</span> to those officers and employees of the agency which...</li>
726
+
<li><span class='marker'>(2)</span> required under section 552 of this title;</li>
727
+
</ol>
728
+
</li>
729
+
</ol></pre>
730
+
731
+
<p>The preceding document should render something like this:</p>
732
+
733
+
<pre>
734
+
(a) Definitions.— For purposes of this section—
735
+
(1) the term “agency” means agency as...
736
+
(2) the term “individual” means a citizen...
737
+
(b) Conditions of Disclosure.— No agency shall disclose...
738
+
(1) to those officers and employees of the agency which...
739
+
(2) required under section 552 of this title;</pre>
740
+
741
+
<p>Importantly, it will <strong>always</strong> be presented something like that, with those exact list markers, even if the stylesheet is unavailable, so other documents can refer to those list markers and be confident that the reference will always be resolvable.</p>
0 commit comments