Skip to content

Commit a96f7ca

Browse files
committed
[css-logical-1] Copy over some mapping info from css-writing-modes (details on which properties control the mapping, a few diagrams) to reduce confusion of ppl reading this spec without reading the referenced css-writing-modes sections first. w3c#691
1 parent 1ddad9f commit a96f7ca

3 files changed

Lines changed: 195 additions & 2 deletions

File tree

css-logical-1/Overview.bs

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Title: CSS Logical Properties and Values Level 1
33
Shortname: css-logical
44
Level: 1
5-
Status: FPWD
5+
Status: ED
66
Work Status: Revising
77
Group: csswg
88
ED: https://drafts.csswg.org/css-logical/
@@ -20,6 +20,18 @@ spec:css-writing-modes-3; type:dfn; text:start
2020
spec:css-writing-modes-3; type:dfn; text:end
2121
</pre>
2222

23+
<style>
24+
@media (min-width: 40em) {
25+
#mapping-diagram figure {
26+
width: 49%;
27+
float: right;
28+
}
29+
#mapping-diagram figure:first-of-type {
30+
margin-right: 2%;
31+
}
32+
}
33+
</style>
34+
2335

2436
<h2 id="intro">
2537
Introduction</h2>
@@ -63,7 +75,28 @@ Introduction</h2>
6375

6476
<a href="http://www.w3.org/TR/css-writing-modes/">CSS Writing Modes</a><a href="https://www.w3.org/TR/css-writing-modes-3/#abstract-box">Abstract Box Terminology</a> section
6577
defines how to map between flow-relative and physical terms.
66-
This mapping controls the interpretation of flow-relative keywords and properties.
78+
This mapping,
79+
which depends on the <a>used values</a> of 'writing-mode' and 'direction',
80+
controls the interpretation of flow-relative keywords and properties.
81+
82+
<div id="mapping-diagram">
83+
<figure>
84+
<img src="diagrams/sizing-ltr-tb.svg">
85+
<figcaption>
86+
Correspondence of physical and flow-relative terms in typical English text layout
87+
</figcaption>
88+
</figure>
89+
<figure>
90+
<img src="diagrams/sizing-ttb-rl.svg">
91+
<figcaption>
92+
Correspondence of physical and flow-relative terms in typical Chinese text layout
93+
</figcaption>
94+
</figure>
95+
</div>
96+
97+
Note: Due to its interaction with ''text-orientation: upright'',
98+
the <a lt="used value">used</a> 'direction'
99+
depends on the <a>computed values</a> of 'writing-mode' and 'text-orientation'.
67100

68101
<div class="issue">
69102
<strong>Things That Are Unstable</strong>
Lines changed: 80 additions & 0 deletions
Loading
Lines changed: 80 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)