Skip to content

Commit b4d3b9c

Browse files
committed
Use <dl> to define flow-relative directions
1 parent cfe1dde commit b4d3b9c

2 files changed

Lines changed: 52 additions & 30 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,25 +1916,41 @@ <h3 id=logical-directions><span class=secno>6.2. </span> Flow-relative
19161916
defined relative to the flow of content on the page. In an <abbr
19171917
title=left-to-right>LTR</abbr> &lsquo;<a href="#horizontal-tb"><code
19181918
class=css>horizontal-tb</code></a>&rsquo; writing mode, they correspond to
1919-
the top, bottom, left, and right directions, respectively.
1919+
the top, bottom, left, and right directions, respectively. They are
1920+
defined as follows:
19201921

1921-
<p>The <dfn id=before>before</dfn> side of a box is nominally the side that
1922-
comes earlier in the block progression, as determined by the &lsquo;<a
1923-
href="#writing-mode1"><code class=property>writing-mode</code></a>&rsquo;
1924-
property. Similarly the <dfn id=after>after</dfn> side is the side that
1925-
comes later in the progression.
1922+
<dl>
1923+
<dt><dfn id=before>before</dfn>
19261924

1927-
<p>The <dfn id=start>start</dfn> side of a box is nominally the side from
1928-
which text of its inline base direction will start. For boxes with a used
1929-
&lsquo;<a href="#direction0"><code
1930-
class=property>direction</code></a>&rsquo; value of &lsquo;<a
1931-
href="#ltr"><code class=css>ltr</code></a>&rsquo;, this means the <a
1932-
href="#line-left"><i>line-left</i></a> side. For boxes with a used
1933-
&lsquo;<a href="#direction0"><code
1934-
class=property>direction</code></a>&rsquo; value of &lsquo;<a
1935-
href="#rtl"><code class=css>rtl</code></a>&rsquo;, this means the <a
1936-
href="#line-right"><i>line-right</i></a> side. The side opposite the start
1937-
side is the <dfn id=end>end</dfn> side.
1925+
<dd>Nominally the side that comes earlier in the block progression, as
1926+
determined by the &lsquo;<a href="#writing-mode1"><code
1927+
class=property>writing-mode</code></a>&rsquo; property: the physical top
1928+
in &lsquo;<a href="#horizontal-tb"><code
1929+
class=css>horizontal-tb</code></a>&rsquo; mode, the right in &lsquo;<a
1930+
href="#vertical-rl"><code class=css>vertical-rl</code></a>&rsquo;, and
1931+
the left in &lsquo;<a href="#vertical-lr"><code
1932+
class=css>vertical-lr</code></a>&rsquo;.
1933+
1934+
<dt><dfn id=after>after</dfn>
1935+
1936+
<dd>The side opposite <a href="#before"><i>before</i></a>.
1937+
1938+
<dt><dfn id=start>start</dfn>
1939+
1940+
<dd>Nominally the side from which text of its inline base direction will
1941+
start. For boxes with a used &lsquo;<a href="#direction0"><code
1942+
class=property>direction</code></a>&rsquo; value of &lsquo;<a
1943+
href="#ltr"><code class=css>ltr</code></a>&rsquo;, this means the <a
1944+
href="#line-left"><i>line-left</i></a> side. For boxes with a used
1945+
&lsquo;<a href="#direction0"><code
1946+
class=property>direction</code></a>&rsquo; value of &lsquo;<a
1947+
href="#rtl"><code class=css>rtl</code></a>&rsquo;, this means the <a
1948+
href="#line-right"><i>line-right</i></a> side.
1949+
1950+
<dt><dfn id=end>end</dfn>
1951+
1952+
<dd>The side opposite the <a href="#start"><i>start</i></a>.
1953+
</dl>
19381954

19391955
<p class=note>Note that while determining the <a
19401956
href="#before"><i>before</i></a> and <a href="#after"><i>after</i></a>

css3-writing-modes/Overview.src.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,19 +1375,25 @@ <h3 id="logical-directions">
13751375
content on the page.
13761376
In an <abbr title="left-to-right">LTR</abbr>
13771377
''horizontal-tb'' writing mode, they correspond to the
1378-
top, bottom, left, and right directions, respectively.
1379-
1380-
<p>The <dfn>before</dfn> side of a box is nominally the side that comes
1381-
earlier in the block progression, as determined by the 'writing-mode'
1382-
property. Similarly the <dfn>after</dfn> side is the side that comes later
1383-
in the progression.
1384-
1385-
<p>The <dfn>start</dfn> side of a box is nominally the side from which
1386-
text of its inline base direction will start. For boxes with
1387-
a used 'direction' value of ''ltr'', this means the <i>line-left</i>
1388-
side. For boxes with a used 'direction' value of ''rtl'', this means
1389-
the <i>line-right</i> side. The side opposite the start side is the
1390-
<dfn>end</dfn> side.
1378+
top, bottom, left, and right directions, respectively. They are
1379+
defined as follows:
1380+
1381+
<dl>
1382+
<dt><dfn>before</dfn>
1383+
<dd>Nominally the side that comes earlier in the block progression,
1384+
as determined by the 'writing-mode' property: the physical top
1385+
in ''horizontal-tb'' mode, the right in ''vertical-rl'', and the
1386+
left in ''vertical-lr''.
1387+
<dt><dfn>after</dfn>
1388+
<dd>The side opposite <i>before</i>.
1389+
<dt><dfn>start</dfn>
1390+
<dd>Nominally the side from which text of its inline base direction
1391+
will start. For boxes with a used 'direction' value of ''ltr'',
1392+
this means the <i>line-left</i> side. For boxes with a used 'direction'
1393+
value of ''rtl'', this means the <i>line-right</i> side.
1394+
<dt><dfn>end</dfn>
1395+
<dd>The side opposite the <i>start</i>.
1396+
</dl>
13911397

13921398
<p class="note">Note that while determining the <i>before</i> and
13931399
<i>after</i> sides of a box depends only on the 'writing-mode' property,

0 commit comments

Comments
 (0)