Skip to content

Commit 2fc30cf

Browse files
committed
[css-writing-modes] Drop use-glyph-orientation, define glyph-orientation-vertical as an alias to text-orientation per WG resolution. (This totally makes more sense.)
1 parent 3bb7600 commit 2fc30cf

1 file changed

Lines changed: 47 additions & 19 deletions

File tree

css-writing-modes/Overview.bs

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,6 @@ Block Flow Direction: the 'writing-mode' property</h3>
912912
<h4 id="svg-writing-mode">
913913
SVG1.1 'writing-mode' Values</h4>
914914

915-
<p class="issue">SVG should inherit writing-mode or not? <a href="https://lists.w3.org/Archives/Public/www-style/2015May/0150.html">www-style</a>
916-
917915
<p>SVG1.1 [[!SVG11]] defines some additional values: ''lr'',
918916
''lr-tb'', ''rl'', ''rl-tb'', ''tb'', and ''tb-rl''.
919917

@@ -1183,7 +1181,7 @@ Orienting Text: the 'text-orientation' property</h3>
11831181

11841182
<pre class='propdef'>
11851183
Name: text-orientation
1186-
Value: mixed | upright | sideways-right | sideways | use-glyph-orientation
1184+
Value: mixed | upright | sideways-right | sideways
11871185
Initial: mixed
11881186
Applies to: all elements except table row groups, rows, column groups, and columns
11891187
Inherited: yes
@@ -1230,22 +1228,6 @@ Orienting Text: the 'text-orientation' property</h3>
12301228
in a horizontal layout, but rotated 90&deg; clockwise.
12311229
<dt><dfn>sideways</dfn></dt>
12321230
<dd><p>This value is equivalent to ''sideways-right''.
1233-
<dt><dfn>use-glyph-orientation</dfn></dt>
1234-
<dd><p>[[!SVG11]] defines 'glyph-orientation-vertical' and
1235-
'glyph-orientation-horizontal' properties that were intended to control
1236-
text orientation. These properties are <em>deprecated</em> and do not
1237-
apply to non-SVG elements. If an implementation supports these properties,
1238-
the ''use-glyph-orientation'' value when set on SVG elements indicates
1239-
that the SVG
1240-
'glyph-orientation-vertical' and 'glyph-orientation-horizontal'
1241-
behavior control the layout of text. Such UAs must set
1242-
''text-orientation: use-glyph-orientation'' on all
1243-
<a href="http://www.w3.org/TR/SVG/intro.html#TermTextContentElement">SVG
1244-
text content elements</a> in their default UA style sheet for SVG.
1245-
<p>In all other contexts, and for implementations that do not support
1246-
the glyph orientation properties, the ''use-glyph-orientation'' behavior
1247-
is the same as for ''mixed''.
1248-
<p class="note">This value is at-risk and may be dropped during CR.
12491231
</dl>
12501232

12511233
<div class="figure" id="fig-text-orientation">
@@ -1387,6 +1369,48 @@ Mixed Vertical Orientations</h4>
13871369
have a problem.
13881370
-->
13891371

1372+
<h4 id="glyph-orientation">
1373+
Obsolete: the SVG1.1 'glyph-orientation-vertical' property</h4>
1374+
1375+
<pre class='propdef'>
1376+
Name: glyph-orientation-horizontal
1377+
Value: auto | 0deg | 90deg
1378+
Initial: n/a
1379+
Applies to: n/a
1380+
Inherited: na/
1381+
Percentages: n/a
1382+
Media: n/a
1383+
Computed value: n/a
1384+
Animatable: n/a
1385+
Canonical order: n/a
1386+
</pre>
1387+
1388+
Some SVG user agents will need to process documents containing
1389+
the obsolete SVG 'glyph-orientation-vertical' property.
1390+
It is recommended that such UAs treat 'glyph-orientation-horizontal'
1391+
as a shorthand alias of 'text-orientation' as follows:
1392+
1393+
<table class="data">
1394+
<thead>
1395+
<tr>
1396+
<th>Shorthand 'glyph-orientation-vertical' value
1397+
<th>Longhand 'text-orientation' value
1398+
<tbody>
1399+
<tr>
1400+
<td>''glyph-orientation-vertical/auto''
1401+
<td>''mixed''
1402+
<tr>
1403+
<td>''0deg''
1404+
<td>''upright''
1405+
<tr>
1406+
<td>''90deg''
1407+
<td>''sideways''
1408+
</table>
1409+
1410+
Note: The ''180deg'' and ''270deg'' values
1411+
and the 'glyph-orientation-horizontal' property
1412+
are not mapped because they have no known use cases.
1413+
13901414
<h2 id="abstract-box">
13911415
Abstract Box Terminology</h2>
13921416

@@ -2587,8 +2611,12 @@ Full-width Characters</h5>
25872611
<h3 class="no-num" id="changes-201311">
25882612
Changes since the <a href="http://www.w3.org/TR/2014/CR-css-writing-modes-3-20140320/">March
25892613
2014 CSS Writing Modes Module Level 3 Candidate Recommendation</a></h3>
2614+
25902615
<ul>
25912616
<li>Fixed orthogonal flows auto-sizing rules to better handle shrink-wrapping.
2617+
<li>Removed ''sideways-left'' value of 'text-orientation' and added ''sideways-lr'' and ''sideways-rl'' values to 'writing-mode'.
2618+
<li>Removed ''use-glyph-orientation'' value of 'text-orientation' and defined 'glyph-orientation-vertical' as an alias of 'text-orientation'
2619+
consistent with how CSS aliases are handled (see 'page-break-inside' for an example).
25922620
</ul>
25932621

25942622
<ul>

0 commit comments

Comments
 (0)