Skip to content

Commit 65b5a75

Browse files
committed
[css-align-3] Define baselines of a line box to make block/multicol definitions easier to read
1 parent bc2ece5 commit 65b5a75

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

css-align-3/Overview.bs

+12-8
Original file line numberDiff line numberDiff line change
@@ -2181,12 +2181,17 @@ Determining the Baselines of a Box</h2>
21812181
are determined differently based on the layout model, as follows:
21822182

21832183
<dl>
2184+
<dt>line box
2185+
<dd>
2186+
The first/last [=baseline set=] of a line box
2187+
is <a>generated</a> from the dominant baseline
2188+
and the font settings of its [=root inline box=].
2189+
21842190
<dt>block containers
21852191
<dd>
21862192
The first/last [=baseline set=] of a <a>block container</a>
2187-
is <a>generated</a> from the dominant first/last baseline
2188-
of the first/last in-flow line box in the block container,
2189-
or is taken from the first/last in-flow block-level child in the block container
2193+
is taken from the first/last in-flow line box in the block container
2194+
or the first/last in-flow block-level child in the block container
21902195
that contributes a set of first/last baselines,
21912196
whichever comes first/last.
21922197
If there is no such line box or child,
@@ -2200,11 +2205,10 @@ Determining the Baselines of a Box</h2>
22002205
<dt>multi-column containers
22012206
<dd>
22022207
The first [=baseline set=] of a <a>multi-column container</a>
2203-
is <a>generated</a> from the dominant first baseline
2204-
of the first in-flow line box in the first column box,
2205-
or is taken from the first in-flow block-level child
2206-
that contributes a set of first baselines,
2207-
whichever comes first.
2208+
is taken from the first/last in-flow line box in the block container
2209+
or the first/last in-flow block-level child in the block container
2210+
that contributes a set of first/last baselines,
2211+
whichever comes first/last.
22082212
If there is no such line box or child,
22092213
then the multi-column container has no first [=baseline set=].
22102214

css-flexbox-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Former Editor: Neil Deakin, Mozilla Corporation, enndeakin@gmail.com
3131
Former Editor: Ian Hickson, formerly of Opera Software, ian@hixie.ch
3232
Former Editor: David Hyatt, formerly of Netscape Corporation, hyatt@apple.com
3333
!Issues List: <a href="https://drafts.csswg.org/css-flexbox-1/issues">https://drafts.csswg.org/css-flexbox-1/issues</a>
34-
Ignored Terms: auto, first formatted line, first letter, static position
34+
Ignored Terms: auto, first formatted line, first letter
3535
Ignored Vars: item’s own max-content, maximum min-content among all items
3636
WPT Path Prefix: css/css-flexbox/
3737
</pre>

0 commit comments

Comments
 (0)