You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some more interesting values to text-orientation. This should allow layout of pretty much anything reasonably desired in vertical layout. Note this is a first cut of the spec for these values; their definitions probably still need refinement.
Copy file name to clipboardExpand all lines: css3-writing-modes/Overview.src.html
+1-205Lines changed: 1 addition & 205 deletions
Original file line number
Diff line number
Diff line change
@@ -826,12 +826,7 @@ <h2 id="text-combine">Glyph Composition: the 'text-combine' property</h2>
826
826
<p>In Japanese, this effect is known as <ilang="ja">tate-chu-yoko</i>.
827
827
</div>
828
828
829
-
<h2id="writing-mode-switching">Proposals for Dealing with Writing Mode Switching</h2>
830
-
831
-
<pclass="issue">NOTE: These are only proposals for dealing with writing mode switching. The CSS Working Group has not endorsed any of them yet, and that they are very likely to be removed at any time.</p>
832
-
833
-
834
-
<h3id="logical-directional">Logical directional properties and values</h3>
829
+
<h2id="logical-directional">Logical directional properties and values</h2>
835
830
836
831
<pclass="issue">NOTE: This is only a proposal under discussion.</p>
<pclass="issue">NOTE: This is only a proposal under discussion.</p>
1347
-
1348
-
<p>User agents that support vertical writing mode must support the <dfn>directional mode</dfn> switch:</p>
1349
-
1350
-
<dl>
1351
-
<dt><dfn>physical directional mode</dfn></dt>
1352
-
<dd>The directional terms (e.g., 'left', 'right', 'top', 'bottom', 'width' and 'height') in property definitions are interpreted as physical directions, e.g., the 'top' means physically the top side even in vertical writing modes.
1353
-
</dd>
1354
-
<dt><dfn>logical directional mode</dfn></dt>
1355
-
<dd>The directional terms (e.g., 'left', 'right', 'top', 'bottom', 'width' and 'height') in property definitions are interpreted as logical directions defined relative to the block-flow direction, e.g., the 'top' means physicallly the right side in the rl block-flow direction.
1356
-
</dd>
1357
-
</dl>
1358
-
1359
-
<p>In physical directional mode, authors can use directional terms in their normal meanings.</p>
1360
-
1361
-
<p>In logical directional mode, authors can use same properties in both horizontal and vertical writing modes for specifying common styles such as indents, margins between blocks, and block dimensions. Style sheets using vertical writing mode with logical directional mode are compatible with existing user agents, that ignore the 'writing-mode' and get fallback to horizontal writing mode, the common styles are kept.</p>
1362
-
1363
-
1364
-
<h4id="directional-mode">Specifying Directional Mode: the 'directional-mode' property</h4>
1365
-
1366
-
<tableclass="propdef">
1367
-
<tbody>
1368
-
<tr>
1369
-
<th>Name:</th>
1370
-
<td><dfn>directional-mode</dfn></td>
1371
-
</tr>
1372
-
<tr>
1373
-
<th>Value:</th>
1374
-
<td>physical | logical</td>
1375
-
</tr>
1376
-
<tr>
1377
-
<th>Initial:</th>
1378
-
<td>physical</td>
1379
-
</tr>
1380
-
<tr>
1381
-
<th>Applies to:</th>
1382
-
<td>all elements</td>
1383
-
</tr>
1384
-
<tr>
1385
-
<th>Inherited:</th>
1386
-
<td>yes</td>
1387
-
</tr>
1388
-
<tr>
1389
-
<th>Percentages:</th>
1390
-
<td>N/A</td>
1391
-
</tr>
1392
-
<tr>
1393
-
<th>Media:</th>
1394
-
<td>visual</td>
1395
-
</tr>
1396
-
<tr>
1397
-
<th>Computed value:</th>
1398
-
<td>specified value</td>
1399
-
</tr>
1400
-
</tbody>
1401
-
</table>
1402
-
1403
-
<p>Values for this property have the following meanings:</p>
1404
-
1405
-
<dl>
1406
-
<dt><strong>physical</strong></dt>
1407
-
<dd>Physical directional mode. Physical directional terms (e.g., 'top') are interpreted as physical directions.</dd>
1408
-
<dt><strong>logical</strong></dt>
1409
-
<dd>Logical directional mode. Physical directional terms (e.g., 'top') are interpreted as logical directions defined relative to the block-flow direction.</dd>
1410
-
</dl>
1411
-
1412
-
<p>In logical directional mode, the directional terms in property definitions are interpreted as logical, i.e.:<p>
1413
-
1414
-
<dl>
1415
-
<dt>left</dt>
1416
-
<dd>the start side for left-to-right text, the end side for right-to-left text.</dd>
1417
-
1418
-
<dt>right</dt>
1419
-
<dd>the end side for left-to-right text, the start side for right-to-left text.</dd>
1420
-
1421
-
<dt>top</dt>
1422
-
<dd>the before side (the side occurring first in the block direction)</dd>
1423
-
1424
-
<dt>bottom</dt>
1425
-
<dd>the after side (the side opposite the before side)</dd>
1426
-
1427
-
<dt>width</dt>
1428
-
<dd>the logical width (the dimension in the inline direction)</dd>
1429
-
1430
-
<dt>height</dt>
1431
-
<dd>the logical height (the dimension in the block direction)</dd>
1432
-
1433
-
<dt>horizontal</dt>
1434
-
<dd>in the inline direction</dd>
1435
-
1436
-
<dt>vertical</dt>
1437
-
<dd>in the block direction</dd>
1438
-
</dl>
1439
-
1440
-
<p>The mappings of directional terms in logical directional mode to physical directional mode are the following:</p>
0 commit comments