Skip to content

Commit 77cdc64

Browse files
committed
[css-inline] Specify that alignment-baseline and dominant-baseline also affect box alignment. Mark an issue for further cleanup of this concept.
1 parent e0ce021 commit 77cdc64

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

css-inline/Overview.bs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Dominant Baselines: the 'dominant-baseline' property</h3>
5656
Name: dominant-baseline
5757
Value: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top
5858
Initial: normal
59-
Applies to: block containers and inline boxes
59+
Applies to: block containers, inline boxes, table rows, table columns, grid containers, and flex containers
6060
Inherited: yes
6161
Percentages: N/A
6262
Media: visual
@@ -65,6 +65,9 @@ Dominant Baselines: the 'dominant-baseline' property</h3>
6565

6666
This property specifies the <dfn>dominant baseline</dfn>,
6767
which is the baseline used to align the box's text and inline-level contents.
68+
It is also indicates the default <a>alignment baseline</a>
69+
of any boxes participating in <a>basline alignment</a>
70+
in the box’s <a>alignment context</a>.
6871
Values have the following meanings:
6972

7073
<dl dfn-for=dominant-baseline dfn-type=value>
@@ -154,14 +157,18 @@ Alignment Point: 'alignment-baseline' longhand</h4>
154157
Name: alignment-baseline
155158
Value: baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top
156159
Initial: baseline
157-
Applies to: inline-level boxes
160+
Applies to: inline-level boxes, flex items, grid items, table cells
158161
Inherited: no
159162
Percentages: N/A
160163
Media: visual
161164
Computed value: as specified
162165
</pre>
163166

164167
<p>Specifies what point of an inline-level box is aligned to what point in the parent.
168+
Also selects the <a>alignment baseline</a> of boxes aligned with 'align-self'/'justify-self'.
169+
170+
ISSUE: Clean up this prose to correctly handle alignment contexts other than inline formatting contexts.
171+
165172
Values are defined below:
166173

167174
For the following definitions,

0 commit comments

Comments
 (0)