Files
ladybird/Tests/LibWeb/Layout/input/inline-block-baseline-alignment.html
Jelle Raaijmakers 6a29b8cc03 LibWeb: Derive inline-block baseline from nested content
Compute inline-block baselines by traversing into nested block children
to find the last in-flow line box, using correct offsets relative to the
margin box edge.

Also ensure inline-flex and inline-grid containers always derive their
baseline from content (per CSS Align), and add special handling for
<input> elements which have `overflow: clip` in the UA stylesheet but
should still align adjacent text with their internal content.
2026-01-22 19:36:09 +01:00

8 lines
113 B
HTML

<!DOCTYPE html>
<style>
div {
display: inline-block;
}
</style>
<div>short</div><div>foo<br>bar<br>baz</div>