Commit 9a017d0
committed
Make Block and inline-block have the same baseline when
https://bugs.webkit.org/show_bug.cgi?id=307965
Reviewed by Antti Koivisto.
Just because a child box's baseline is its margin box, it does not necessarily mean it is not a
valid baseline.
e.g.
<div style="display: inline-block">
<div style="overflow: hidden">text</div>
</div>
Due to 'overflow: hidden', the inner box's baseline is its margin box and not 'text',
but it is still a valid baseline candidate box when computing the baseline for outer.
* LayoutTests/TestExpectations:
* Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp:
(WebCore::LayoutIntegration::lastInflowBoxBaseline):
Do not use 'shouldUseMarginBoxAsBaseline' to decided whether a child box is a candidate
for baseline computation.
Canonical link: https://commits.webkit.org/307718@mainoverflow: hidden
1 parent bf5b0fd commit 9a017d0
File tree
2 files changed
+18
-6
lines changed- LayoutTests
- Source/WebCore/layout/integration
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8184 | 8184 | | |
8185 | 8185 | | |
8186 | 8186 | | |
8187 | | - | |
8188 | 8187 | | |
8189 | 8188 | | |
8190 | 8189 | | |
| |||
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | 368 | | |
371 | | - | |
372 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
373 | 386 | | |
374 | | - | |
| 387 | + | |
375 | 388 | | |
376 | 389 | | |
377 | 390 | | |
| |||
0 commit comments