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
Copy file name to clipboardExpand all lines: css-inline/Overview.bs
+199-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,205 @@ Link Defaults: css-fonts-3 (property) font-family
28
28
29
29
<p class="issue">This section is being rewritten. Refer to <a href="http://www.w3.org/TR/CSS21/visudet.html#line-height">section 10.8</a> of [[CSS21]] for the normative CSS definition or the <a href="http://www.w3.org/TR/2002/WD-css3-linebox-20020515/">2002 Working Draft</a> if you want pretty pictures. (But ignore the old text, half of it's wrong. We're not specifying which half, that's to be determined.)</p>
30
30
31
-
31
+
<h3 id="dominant-baseline property">
32
+
Dominant Baselines: the 'dominant-baseline' property</h3>
33
+
34
+
<pre class="propdef">
35
+
Name: dominant-baseline
36
+
Value: auto | text-bottom | alphabetic | central | mathematical | hanging | text-top
37
+
Initial: normal
38
+
Applies to: block containers and inline boxes
39
+
Inherited: yes
40
+
Percentages: N/A
41
+
Media: visual
42
+
Computed value: as specified
43
+
</pre>
44
+
45
+
This property specifies the <dfn>dominant baseline</dfn>,
46
+
which is the baseline used to align the box's text and inline-level contents.
47
+
Values have the following meanings:
48
+
49
+
<dl dfn-for=dominant-baseline dfn-type=value>
50
+
<dt><dfn>auto</dfn>
51
+
<dd>
52
+
Equivalent to ''dominant-baseline/alphabetic'' in <i>horizontal writing modes</i>
53
+
and in <i>vertical writing modes</i>
54
+
when 'text-orientation' is ''sideways'', ''sideways-right'', or ''sideways-left''.
55
+
equivalent to ''dominant-baseline/central'' in <i>vertical writing modes</i>
56
+
when 'text-orientation' is ''mixed'' or ''upright''.
57
+
58
+
<dt><dfn>text-bottom</dfn>
59
+
<dd>
60
+
Use the bottom of the em box as the baseline.
61
+
62
+
<dt><dfn>alphabetic</dfn>
63
+
<dd>
64
+
Use the alphabetic baseline.
65
+
66
+
<dt><dfn>central</dfn>
67
+
<dd>
68
+
Use the central baseline
69
+
(halfway between the ascent and descent).
70
+
71
+
<dt><dfn>mathematical</dfn>
72
+
<dd>
73
+
Use the mathematical baseline.
74
+
75
+
<dt><dfn>hanging</dfn>
76
+
<dd>
77
+
Use the hanging baseline.
78
+
79
+
<dt><dfn>text-top</dfn>
80
+
<dd>
81
+
Use the top of the em box as the baseline.
82
+
</dl>
83
+
84
+
See [[CSS3-WRITING-MODES]] for an introduction to dominant baselines.
85
+
86
+
Issue: Should be text-over and text-under instead of text-top and text-bottom,
87
+
but maybe it's better not to use those terms for consistency with legacy 'vertical-align'.
88
+
89
+
<h3 id="transverse-alignment">
90
+
Transverse Box Alignment: the 'vertical-align' property</h3>
0 commit comments