Skip to content

Commit bb8ad65

Browse files
committed
[css-inline-3] Wording improvements to line layout.
1 parent 9272328 commit bb8ad65

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,16 @@ Layout Within Line Boxes</h3>
207207
sizing and positioning each [=box fragment=] and [=line box=] independently,
208208
as follows:
209209

210-
1. The [=layout bounds=] of each [=inline-level box=] in the [=line box=]
211-
are calculated.
210+
1. All [=in-flow=] [=inline-level boxes=] in the [=line box=]
211+
are aligned to each other in the [=block axis=]
212+
according to 'dominant-baseline' and 'vertical-align'.
213+
This is referred to as [[#alignment|baseline alignment]].
214+
Those with [=line-relative values=] for 'baseline-shift'
215+
are assumed to be aligned so as to minimize the line box height.
216+
217+
2. The [=layout bounds=] (i.e. the size contributions)
218+
of each [=inline-level box=] in the [=line box=]
219+
are calculated:
212220

213221
<ul class=switch>
214222
<li>
@@ -218,29 +226,23 @@ Layout Within Line Boxes</h3>
218226
For the [=root inline box=],
219227
and for [=inline boxes=] with ''text-edge: leading'':
220228
this derived from their used 'line-height',
221-
ignoring any [=margin=]/[=border=]/[=padding=]
229+
ignoring any [=margin=]/[=border=]/[=padding=];
222230
see [[#inline-height]].
223231

224232
<li>
225233
For other [=inline boxes=]:
226234
this is derived from their 'text-edge' metrics,
227-
and includes any [=margin=]/[=border=]/[=padding=],
235+
and includes any [=margin=]/[=border=]/[=padding=];
228236
see [[#inline-height]]
229237
</ul>
230238

231-
2. The [=inline-level boxes=]
232-
are aligned in the [=block axis=]
233-
according to 'dominant-baseline' and 'vertical-align'.
234-
Those with [=line-relative values=] for 'baseline-shift'
235-
are assumed to be aligned so as to minimize the line box height.
236-
237-
3. The [=line box=]’s [=logical height=] is calculated
239+
3. The [=line box=]’s [=logical height=] is sized
238240
to exactly include the aligned [=layout bounds=]
239241
of all its [=inline-level boxes=].
240242

241243
4. The [=root inline box=]’s [=aligned subtree=]
242-
and boxes with line-box&ndash;relative 'vertical-align' values
243-
are aligned with respect to the [=line box=].
244+
and boxes [=line-relative values=] for 'baseline-shift'
245+
are positioned within the [=line box=].
244246

245247
Issue: Define what to do for top/bottom/center aligned boxes that are taller than the rest of the content.
246248

0 commit comments

Comments
 (0)