mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Use `calculate_inner_height()` and `calculate_inner_width()`, which account for box-sizing, to resolve the item's size in max-content contribution calculations.
12 lines
267 B
HTML
12 lines
267 B
HTML
<!doctype html><style>
|
|
.container {
|
|
display: grid;
|
|
background: red;
|
|
}
|
|
.item {
|
|
box-sizing: border-box;
|
|
height: 50px;
|
|
padding: 10px;
|
|
background: lime;
|
|
}
|
|
</style><div class="container"><div class="item">There should be no red visible.</div></div> |