ladybird/Tests/LibWeb/Layout/input/inline-nested-with-padding.html
Jelle Raaijmakers 2585f2da0d LibWeb: Apply nested inline margin box sizes to inline layout nodes
When committing the layout state, we now take nested inlines' margin,
border and padding sizes into account.

Fixes #3491.
2025-08-28 00:05:28 +02:00

21 lines
392 B
HTML

<!DOCTYPE html>
<style>
.a {
border: 2px solid red;
}
.b {
background: blue;
color: white;
padding: 0 30px;
}
.c {
background: green;
color: white;
padding: 30px 0;
}
</style>
<span class="a"><span class="b">whf</span></span>
<hr>
<span class="a"><span class="b">wh<span class="b"> foo </span>f</span></span>
<hr>
<span class="a"><span class="c">whf</span></span>