Skip to content

Commit e917cdc

Browse files
committed
Add example of horizontal list markers on vertical text. (Need to ping Tab to make sure this actually works wrt CSS3 Lists.)
1 parent ae4fd5b commit e917cdc

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,24 @@ <h3 id=writing-mode><span class=secno>3.1. </span> Block Flow Direction:
11851185
src=vertical-form.png></p>
11861186
</div>
11871187

1188+
<div class=example>
1189+
<p>In this example, &lsquo;<a href="#writing-mode1"><code
1190+
class=property>writing-mode</code></a>&rsquo; sets the list markers
1191+
upright using the &lsquo;<code class=css>::marker</code>&rsquo;
1192+
pseudo-element. <a href="#CSS3LIST"
1193+
rel=biblioentry>[CSS3LIST]<!--{{CSS3LIST}}--></a>
1194+
1195+
<pre>::marker { writing-mode: horizontal-tb; color: blue; }</pre>
1196+
1197+
<div class=figure>
1198+
<p><img alt="Diagram showing list markers of '1.', '2.', '3.' sitting
1199+
upright atop sideways vertical Latin list item text." class=example
1200+
src=vertical-horizontal-list-markers.png>
1201+
1202+
<p class=caption>Example of horizontal list markers in a vertical list</p>
1203+
</div>
1204+
</div>
1205+
11881206
<h4 id=svg-writing-mode><span class=secno>3.1.1. </span> SVG1.1 &lsquo;<a
11891207
href="#writing-mode1"><code class=property>writing-mode</code></a>&rsquo;
11901208
Values</h4>
@@ -3647,6 +3665,16 @@ <h3 class=no-num id=other-references> Other references</h3>
36473665
</dd>
36483666
<!---->
36493667

3668+
<dt id=CSS3LIST>[CSS3LIST]
3669+
3670+
<dd>Ian Hickson; Tantek &#199;el&#305;?k. <a
3671+
href="http://www.w3.org/TR/2002/WD-css3-lists-20021107"><cite>CSS3
3672+
module: Lists.</cite></a> 7 November 2002. W3C Working Draft. (Work in
3673+
progress.) URL: <a
3674+
href="http://www.w3.org/TR/2002/WD-css3-lists-20021107">http://www.w3.org/TR/2002/WD-css3-lists-20021107</a>
3675+
</dd>
3676+
<!---->
3677+
36503678
<dt id=CSS3PAGE>[CSS3PAGE]
36513679

36523680
<dd>H&#229;kon Wium Lie; Melinda Grant. <a

css3-writing-modes/Overview.src.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,21 @@ <h3 id="writing-mode">
827827
src="vertical-form.png"></p>
828828
</div>
829829

830+
<div class="example">
831+
<p>In this example, 'writing-mode' sets the list markers upright
832+
using the ''::marker'' pseudo-element. Vertical alignment ensures
833+
that longer numbers will still align with the top of the first
834+
line of text. [[CSS3LIST]]
835+
<pre>::marker { writing-mode: horizontal-tb; vertical-align: text-top;
836+
color: blue; }</pre>
837+
<div class="figure">
838+
<p><img alt="Diagram showing list markers of '1.', '2.', '3.' sitting
839+
upright atop sideways vertical Latin list item text."
840+
class="example" src="vertical-horizontal-list-markers.png">
841+
<p class="caption">Example of horizontal list markers in a vertical list</p>
842+
</div>
843+
</div>
844+
830845
<h4 id="svg-writing-mode">
831846
SVG1.1 'writing-mode' Values</h4>
832847

2.39 KB
Loading

0 commit comments

Comments
 (0)