@@ -86,14 +86,16 @@ Inline Layout Model</h2>
86
86
In <dfn>inline layout</dfn> ,
87
87
a mixed, recursive stream of text and [=inline-level boxes=]
88
88
forming an <dfn>inline formatting context</dfn> within a [=block container=]
89
- are laid out by [=fragmenting=] them into a stack of [=line boxes=] ,
90
- and aligning the text and boxes to each other within each [=line box=] .
89
+ are laid out by [=fragmenting=] them into a stack of [=line boxes=] .
90
+ Within each [=line box=] ,
91
+ [=inline-level boxes=] are [[#alignment|aligned to each other]] along the [=block axis=] ,
92
+ typically by the [=baselines=] of their text.
91
93
92
94
Any [=block container=] that directly contains
93
95
[=inline-level=] content--
94
96
such as [=inline boxes=] , [=atomic inlines=] , and [=text runs=] --
95
97
establishes an [=inline formatting context=]
96
- to lay out its contents.
98
+ to lay out its contents using [=inline layout=] .
97
99
The [=block container=] ’s [=content edges=] form the [=containing block=]
98
100
for each of the [=inline-level boxes=]
99
101
participating in its [=inline formatting context=] .
@@ -172,16 +174,9 @@ Layout of Line Boxes</h3>
172
174
(See [[CSS2/visuren#inline-formatting]] /[[CSS2/visuren#floats]]
173
175
and [[#initial-letter-styling]] .)
174
176
175
- Within the [=line box=] ,
176
- [=inline-level boxes=] can be aligned
177
- along the [=block axis=]
178
- in different ways:
179
- their [=line-over|over=] or [=line-under|under=] edges can be aligned,
180
- or the baselines of text within them can be aligned.
181
- See 'vertical-align' and its longhands.
182
-
183
- The [=logical height=] of a [=line box=] is then fitted to its contents;
184
- this fit is controlled by 'line-height' and 'text-edge' .
177
+ The [=logical height=] of a [=line box=] is fitted to its contents
178
+ once they have been [[#alignment|block-axis aligned]] .
179
+ This fit is controlled by 'line-height' and 'text-edge' .
185
180
The first/last line boxes in a [=block container=] may additionally
186
181
be trimmed by 'leading-trim' .
187
182
0 commit comments