Skip to content

Commit b5b39d9

Browse files
committed
[css-writing-modes] Add some notes clarifying that used 'direction' is influenced by text-orientation and writing-mode.
1 parent a5d06cd commit b5b39d9

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

css-writing-modes-3/Overview.bs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,7 @@ Orienting Text: the 'text-orientation' property</h3>
12231223
are typeset with their intrinsic orientation.
12241224
See <a href="#vertical-orientations">Vertical Orientations</a> for further details.
12251225
<p>This value is typical for layout of dominantly vertical-script text.
1226+
12261227
<dt><dfn>upright</dfn></dt>
12271228
<dd><p>In vertical writing modes,
12281229
<a>typographic character units</a> from horizontal-only scripts
@@ -1231,9 +1232,17 @@ Orienting Text: the 'text-orientation' property</h3>
12311232
<a>Typographic character units</a> from vertical scripts
12321233
are typeset with their intrinsic orientation and shaped normally.
12331234
See <a href="#vertical-orientations">Vertical Orientations</a> for further details.
1234-
<p>This value causes the used value of 'direction' to be ''ltr'',
1235+
<p>This value causes the <a>used value</a> of 'direction' to be ''ltr'',
12351236
and for the purposes of bidi reordering,
12361237
causes all characters to be treated as strong LTR.
1238+
1239+
Note: The <a>used value</a>, rather than the <a>computed value</a>,
1240+
of 'direction' is influenced
1241+
so that ''rtl'' can inherit properly
1242+
into any descendants
1243+
(such as the contents of a <a lt="horizontal writing mode">horizontal</a> inline-block)
1244+
where this directional override does not apply.
1245+
12371246
<dt><dfn>sideways</dfn></dt>
12381247
<dd><p>In vertical writing modes,
12391248
this causes all text to be <a href="#typeset-sideways">typeset sideways</a>,
@@ -1764,6 +1773,12 @@ Abstract-to-Physical Mappings</h3>
17641773
</tbody>
17651774
</table>
17661775

1776+
Note: The <a lt="used value">used</a> 'direction'
1777+
depends on the computed 'writing-mode' and 'text-orientation':
1778+
in <a>vertical writing modes</a>,
1779+
a 'text-orientation' value of ''text-orientation/upright''
1780+
forces the used 'direction' to ''ltr''.
1781+
17671782
<h2 id="abstract-layout">
17681783
Abstract Box Layout</h2>
17691784

css-writing-modes-4/Overview.bs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ Orienting Text: the 'text-orientation' property</h3>
13001300
are typeset with their intrinsic orientation.
13011301
See <a href="#vertical-orientations">Vertical Orientations</a> for further details.
13021302
<p>This value is typical for layout of dominantly vertical-script text.
1303+
13031304
<dt><dfn>upright</dfn></dt>
13041305
<dd><p>In vertical writing modes,
13051306
<a>typographic character units</a> from horizontal-only scripts
@@ -1308,9 +1309,17 @@ Orienting Text: the 'text-orientation' property</h3>
13081309
<a>Typographic character units</a> from vertical scripts
13091310
are typeset with their intrinsic orientation and shaped normally.
13101311
See <a href="#vertical-orientations">Vertical Orientations</a> for further details.
1311-
<p>This value causes the used value of 'direction' to be ''ltr'',
1312+
<p>This value causes the <a>used value</a> of 'direction' to be ''ltr'',
13121313
and for the purposes of bidi reordering,
13131314
causes all characters to be treated as strong LTR.
1315+
1316+
Note: The <a>used value</a>, rather than the <a>computed value</a>,
1317+
of 'direction' is influenced
1318+
so that ''rtl'' can inherit properly
1319+
into any descendants
1320+
(such as the contents of a <a lt="horizontal writing mode">horizontal</a> inline-block)
1321+
where this directional override does not apply.
1322+
13141323
<dt><dfn>sideways</dfn></dt>
13151324
<dd><p>In vertical writing modes,
13161325
this causes all text to be <a href="#typeset-sideways">typeset sideways</a>,
@@ -1860,6 +1869,12 @@ Abstract-to-Physical Mappings</h3>
18601869
</tbody>
18611870
</table>
18621871

1872+
Note: The <a lt="used value">used</a> 'direction'
1873+
depends on the computed 'writing-mode' and 'text-orientation':
1874+
in <a>vertical writing modes</a>,
1875+
a 'text-orientation' value of ''text-orientation/upright''
1876+
forces the used 'direction' to ''ltr''.
1877+
18631878
<h2 id="abstract-layout">
18641879
Abstract Box Layout</h2>
18651880

0 commit comments

Comments
 (0)