Skip to content

Commit 137fcbd

Browse files
committed
[css-writing-modes] writing-mode: sideways-lr | sideways-rl
1 parent 9dd4c75 commit 137fcbd

1 file changed

Lines changed: 27 additions & 67 deletions

File tree

css-writing-modes/Overview.bs

Lines changed: 27 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Former Editor: Shinyu Murakami, Antenna House, murakami@antenna.co.jp
1616
Former Editor: Paul Nelson, Microsoft, paulnel@microsoft.com
1717
Former Editor: Michel Suignard, Microsoft, michelsu@microsoft.com
1818
Abstract: CSS Writing Modes Level 3 defines CSS support for various international writing modes, such as left-to-right (e.g. Latin or Indic), right-to-left (e.g. Hebrew or Arabic), bidirectional (e.g. mixed Latin and Arabic) and vertical (e.g. Asian scripts).
19-
At Risk: The ''sideways-left'' of 'text-orientation'
19+
At Risk: The ''sideways-lr'' and ''sideways-rl'' of 'writing-mode'
2020
At Risk: The ''use-glyph-orientation'' of 'text-orientation'
2121
At Risk: The ''digits'' value of 'text-combine-upright'.
2222
At Risk: The look-ahead/look-behind sequencing rules for 'text-combine-upright'.
@@ -783,7 +783,7 @@ Block Flow Direction: the 'writing-mode' property</h3>
783783

784784
<pre class='propdef'>
785785
Name: writing-mode
786-
Value: horizontal-tb | vertical-rl | vertical-lr
786+
Value: horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr
787787
Initial: horizontal-tb
788788
Applies to: All elements except table row groups, table column groups, table rows, and table columns
789789
Inherited: yes
@@ -801,13 +801,21 @@ Block Flow Direction: the 'writing-mode' property</h3>
801801
<dl dfn-for=writing-mode dfn-type=value>
802802
<dt><dfn>horizontal-tb</dfn></dt>
803803
<dd>Top-to-bottom <i>block flow direction</i>.
804-
Both the <i>writing mode</i> and <i>typographic mode</i> are horizontal.</dd>
804+
Both the <i>writing mode</i> and the <i>typographic mode</i> are horizontal.</dd>
805805
<dt><dfn>vertical-rl</dfn></dt>
806806
<dd>Right-to-left <i>block flow direction</i>.
807-
Both the <i>writing mode</i> and <i>typographic mode</i> are vertical.</dd>
807+
Both the <i>writing mode</i> and the <i>typographic mode</i> are vertical.</dd>
808808
<dt><dfn>vertical-lr</dfn></dt>
809809
<dd>Left-to-right <i>block flow direction</i>.
810-
Both the <i>writing mode</i> and <i>typographic mode</i> are vertical.</dd>
810+
Both the <i>writing mode</i> and the <i>typographic mode</i> are vertical.</dd>
811+
<dt><dfn>sideways-rl</dfn></dt>
812+
<dd>Right-to-left <i>block flow direction</i>.
813+
The <i>writing mode</i> is vertical, while the <a>typographic mode</a> is horizontal.
814+
<p class="note">This value is at-risk and may be dropped during CR.
815+
<dt><dfn>sideways-lr</dfn></dt>
816+
<dd>Left-to-right <i>block flow direction</i>.
817+
The <i>writing mode</i> is vertical, while the <a>typographic mode</a> is horizontal.
818+
<p class="note">This value is at-risk and may be dropped during CR.
811819
</dl>
812820

813821
<p>The 'writing-mode' property specifies the <i>block flow direction</i>,
@@ -1224,35 +1232,8 @@ Orienting Text: the 'text-orientation' property</h3>
12241232
<dt><dfn>sideways-right</dfn></dt>
12251233
<dd><p>In vertical writing modes, this causes text to be set as if
12261234
in a horizontal layout, but rotated 90&deg; clockwise.
1227-
<dt><dfn>sideways-left</dfn></dt>
1228-
<dd><p>In vertical writing modes, this causes text to be set as if
1229-
in a horizontal layout, but rotated 90&deg; counter-clockwise.
1230-
<p>If set on a non-replaced inline whose parent is not ''sideways-left'',
1231-
this forces bidi isolation: the ''normal'' and ''embed'' values of
1232-
'unicode-bidi' compute to ''isolate'', and ''bidi-override'' computes
1233-
to ''isolate-override''.
1234-
Layout of text is exactly as for ''sideways-right'' except that the
1235-
baseline table of each of the inline box's fragments
1236-
is mirrored around a vertical axis along the center of its content box
1237-
and text layout is rotated 180&deg; to match.
1238-
The positions of text decorations propagated from an ancestor inline
1239-
(including the block container's root inline) are not mirrored, but any
1240-
text decorations introduced by the box are positioned using the
1241-
mirrored baseline table.
1242-
<p>Similarly, if an inline child of the box has a 'text-orientation'
1243-
value other than ''sideways-left'', an analogous transformation (and
1244-
bidi isolation) is applied.
1245-
<p class="note">This value is at-risk and may be dropped during CR.
1246-
<p class="issue"><a href="https://lists.w3.org/Archives/Public/www-style/2015Apr/0026.html">float interaction when line-left and line-right swap</a>
1247-
<p class="note">If this value is not supported, implementation should drop support for
1248-
either ''vertical-lr'' or ''sideways'' as well,
1249-
since the combination of the two requires ''sideways-left'' layout.
1250-
<p class="issue">Need to mark ''vertical-lr'' at risk
12511235
<dt><dfn>sideways</dfn></dt>
1252-
<dd><p>This value is equivalent to ''sideways-right'' in ''vertical-rl''
1253-
writing mode and equivalent to ''sideways-left'' in ''vertical-lr''
1254-
writing mode. It can be useful when setting horizontal script text
1255-
vertically in a primarily horizontal-only document.
1236+
<dd><p>This value is equivalent to ''sideways-right''.
12561237
<dt><dfn>use-glyph-orientation</dfn></dt>
12571238
<dd><p>[[!SVG11]] defines 'glyph-orientation-vertical' and
12581239
'glyph-orientation-horizontal' properties that were intended to control
@@ -1681,16 +1662,9 @@ Abstract-to-Physical Mappings</h3>
16811662
<tr>
16821663
<th scope="row">'writing-mode'</th>
16831664
<th colspan="2">''horizontal-tb''</th>
1684-
<th colspan="4">''vertical-rl''</th>
1685-
<th colspan="4">''vertical-lr''</th>
1686-
</tr>
1687-
<tr>
1688-
<th scope="row">'text-orientation'</th>
1689-
<th colspan="2">&mdash;</th>
1690-
<th colspan="2">''sideways-left''</th>
1691-
<th colspan="2"><abbr title="mixed, upright, sideways-right">*right</abbr></th>
1692-
<th colspan="2">''sideways-left''</th>
1693-
<th colspan="2"><abbr title="mixed, upright, sideways-right">*right</abbr></th>
1665+
<th colspan="2">''vertical-rl'', ''sideways-rl''</th>
1666+
<th colspan="2">''vertical-lr''</th>
1667+
<th colspan="2">''sideways-lr''</th>
16941668
</tr>
16951669
<tr>
16961670
<th scope="row">'direction'</th>
@@ -1702,92 +1676,78 @@ Abstract-to-Physical Mappings</h3>
17021676
<th>''rtl''</th>
17031677
<th>''ltr''</th>
17041678
<th>''rtl''</th>
1705-
<th>''ltr''</th>
1706-
<th>''rtl''</th>
17071679
</tr>
17081680
</thead>
17091681
<tbody>
17101682
<tr>
17111683
<th scope="row">block-size</th>
17121684
<td colspan="2">height</td>
1713-
<td colspan="8">width</td>
1685+
<td colspan="6">width</td>
17141686
</tr>
17151687
<tr>
17161688
<th scope="row">inline-size</th>
17171689
<td colspan="2">width</td>
1718-
<td colspan="8">height</td>
1690+
<td colspan="6">height</td>
17191691
</tr>
17201692
<tr>
17211693
<th scope="row">block-start</th>
17221694
<td colspan="2">top</td>
1723-
<td colspan="4">right</td>
1695+
<td colspan="2">right</td>
17241696
<td colspan="4">left</td>
17251697
</tr>
17261698
<tr>
17271699
<th scope="row">block-end</th>
17281700
<td colspan="2">bottom</td>
1729-
<td colspan="4">left</td>
1701+
<td colspan="2">left</td>
17301702
<td colspan="4">right</td>
17311703
</tr>
17321704
<tr>
17331705
<th scope="row">inline-start</th>
17341706
<td>left</td>
17351707
<td>right</td>
1736-
<td>bottom</td>
17371708
<td>top</td>
1709+
<td>bottom</td>
17381710
<td>top</td>
17391711
<td>bottom</td>
17401712
<td>bottom</td>
17411713
<td>top</td>
1742-
<td>top</td>
1743-
<td>bottom</td>
17441714
</tr>
17451715
<tr>
17461716
<th scope="row">inline-end</th>
17471717
<td>right</td>
17481718
<td>left</td>
1749-
<td>top</td>
17501719
<td>bottom</td>
1720+
<td>top</td>
17511721
<td>bottom</td>
17521722
<td>top</td>
17531723
<td>top</td>
17541724
<td>bottom</td>
1755-
<td>bottom</td>
1756-
<td>top</td>
17571725
</tr>
17581726
</tbody>
17591727
<tbody>
17601728
<tr>
17611729
<th scope="row">over</th>
17621730
<td colspan="2">top</td>
1731+
<td colspan="4">right</td>
17631732
<td colspan="2">left</td>
1764-
<td colspan="2">right</td>
1765-
<td colspan="2">left</td>
1766-
<td colspan="2">right</td>
17671733
</tr>
17681734
<tr>
17691735
<th scope="row">under</th>
17701736
<td colspan="2">bottom</td>
1737+
<td colspan="4">left</td>
17711738
<td colspan="2">right</td>
1772-
<td colspan="2">left</td>
1773-
<td colspan="2">right</td>
1774-
<td colspan="2">left</td>
17751739
</tr>
17761740
<tr>
17771741
<th scope="row">line-left</th>
17781742
<td colspan="2">left</td>
1743+
<td colspan="4">top</td>
17791744
<td colspan="2">bottom</td>
1780-
<td colspan="2">top</td>
1781-
<td colspan="2">bottom</td>
1782-
<td colspan="2">top</td>
17831745
</tr>
17841746
<tr>
17851747
<th scope="row">line-right</th>
17861748
<td colspan="2">right</td>
1749+
<td colspan="4">bottom</td>
17871750
<td colspan="2">top</td>
1788-
<td colspan="2">bottom</td>
1789-
<td colspan="2">top</td>
1790-
<td colspan="2">bottom</td>
17911751
</tr>
17921752
</tbody>
17931753
</table>

0 commit comments

Comments
 (0)