Skip to content

Commit be6130d

Browse files
committed
More diagrams for line orientation
1 parent ba8ab4d commit be6130d

4 files changed

Lines changed: 447 additions & 155 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
.portrait { width: 10em; }
1414
.sidebar .figure { margin: 1em; }
1515
.sidebar object { margin: 0 auto; display: block; }
16+
.figurepair { display: table; margin: 1em auto; }
17+
.figurepair .figure { display: table-cell; }
1618
h2 { clear: both; }
1719
</style>
1820
<link href="http://www.w3.org/StyleSheets/tr/W3C-ED.css" rel=stylesheet
@@ -25,7 +27,7 @@
2527

2628
<h1>CSS Writing Modes Module Level 3</h1>
2729

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 17 October
30+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 October
2931
2010</h2>
3032

3133
<dl>
@@ -982,7 +984,9 @@ <h3 id=boxes-with-orthogonal-writing-mode><span class=secno>4.2.
982984
</div>
983985

984986
<h2 id=line-orientation><span class=secno>5. </span>Line Orientation</h2>
985-
987+
<!-- <p>The block flow direction given by &lsquo;<code class=property>writing-mode</code>&rsquo; determines only the
988+
ordering and placement of the line boxes -->
989+
986990
<h3 id=line-directions><span class=secno>5.1. </span>Line-based
987991
Directions</h3>
988992

@@ -993,7 +997,7 @@ <h3 id=line-directions><span class=secno>5.1. </span>Line-based
993997
which side is its "top", or <a href="#over0"><em>over</em></a> edge, is
994998
determined by the &lsquo;<a href="#text-orientation0"><code
995999
class=property>text-orientation</code></a>&rsquo; property on its
996-
containing block.
1000+
containing block, and is independent of the block flow direction.
9971001

9981002
<p>In addition to its <dfn id=over0>over</dfn> (ascender side) and <dfn
9991003
id=under0>under</dfn> (descender side) edges, a line box, even a
@@ -1004,7 +1008,7 @@ <h3 id=line-directions><span class=secno>5.1. </span>Line-based
10041008

10051009
<div class=figure> <object class=landscape
10061010
data="diagrams/line-orient-up.svg" type="image/svg+xml"></object>
1007-
<p class=caption>Line orientation compass.</p>
1011+
<p class=caption>Line orientation compass</p>
10081012
</div>
10091013

10101014
<p>The <dfn id=start>start</dfn> edge of a box is nominally the edge from
@@ -1035,6 +1039,19 @@ <h3 id=line-directions><span class=secno>5.1. </span>Line-based
10351039
properties, but also its &lsquo;<a href="#text-orientation0"><code
10361040
class=property>text-orientation</code></a>&rsquo; property.</p>
10371041

1042+
<div class=figurepair>
1043+
<div class=figure> <object class=portrait
1044+
data="diagrams/line-orient-right.svg" type="image/svg+xml"></object>
1045+
<p class=caption>Typical orientation in vertical</p>
1046+
</div>
1047+
1048+
<div class=figure> <object class=portrait
1049+
data="diagrams/line-orient-left.svg" type="image/svg+xml"></object>
1050+
<p class=caption>Line orientation with &lsquo;<code
1051+
class=css>text-orientation: rotate-left</code>&rsquo;</p>
1052+
</div>
1053+
</div>
1054+
10381055
<p class=note>Note also that while the <a href="#over0"><i>over</i></a>
10391056
and <a href="#under0"><i>under</i></a> directions often map to the same
10401057
directions as <a href="#before">before</a> and <a

css3-writing-modes/Overview.src.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
.portrait { width: 10em; }
1212
.sidebar .figure { margin: 1em; }
1313
.sidebar object { margin: 0 auto; display: block; }
14+
.figurepair { display: table; margin: 1em auto; }
15+
.figurepair .figure { display: table-cell; }
1416
h2 { clear: both; }
1517
</style>
1618
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/tr/W3C-ED.css">
@@ -696,12 +698,16 @@ <h3>Boxes with Orthogonal Writing Mode</h3>
696698

697699
<h2 id="line-orientation">Line Orientation</h2>
698700

701+
<!-- <p>The block flow direction given by 'writing-mode' determines only the
702+
ordering and placement of the line boxes -->
703+
699704
<h3 id="line-directions">Line-based Directions</h3>
700705

701706
<p>Every line box has an orientation. Whether its orientation is horizontal
702707
or vertical is determined by the 'writing-mode' property. Given that,
703708
which side is its "top", or <em>over</em> edge, is determined by the
704-
'text-orientation' property on its containing block.
709+
'text-orientation' property on its containing block, and is independent
710+
of the block flow direction.
705711

706712
<p>In addition to its <dfn>over</dfn> (ascender side) and <dfn>under</dfn>
707713
(descender side) edges, a line box, even a vertically-oriented one, also
@@ -712,7 +718,7 @@ <h3 id="line-directions">Line-based Directions</h3>
712718
<div class="figure">
713719
<object data="diagrams/line-orient-up.svg" type="image/svg+xml"
714720
class="landscape"></object>
715-
<p class="caption">Line orientation compass.</p>
721+
<p class="caption">Line orientation compass</p>
716722
</div>
717723

718724
<p>The <dfn>start</dfn> edge of a box is nominally the edge from which
@@ -730,6 +736,20 @@ <h3 id="line-directions">Line-based Directions</h3>
730736
edges of a box depends not only on its 'writing-mode' and 'direction'
731737
properties, but also its 'text-orientation' property.</p>
732738

739+
<div class="figurepair">
740+
<div class="figure">
741+
<object data="diagrams/line-orient-right.svg" type="image/svg+xml"
742+
class="portrait"></object>
743+
<p class="caption">Typical orientation in vertical</p>
744+
</div>
745+
746+
<div class="figure">
747+
<object data="diagrams/line-orient-left.svg" type="image/svg+xml"
748+
class="portrait"></object>
749+
<p class="caption">Line orientation with ''text-orientation: rotate-left''</p>
750+
</div>
751+
</div>
752+
733753
<p class="note">Note also that while the <i>over</i> and <i>under</i>
734754
directions often map to the same directions as <a href="#before">before</a>
735755
and <a href="#after">after</a> respectively, this mapping is reversed

0 commit comments

Comments
 (0)