ladybird/Tests/LibWeb/Layout/input/min-width-border-box.html
Callum Law 405c5ffa60 LibWeb: Propagate border-box dimensions when getting max content width
This means that we now calculate the inner width correctly for `display:
inline-block` nodes when we have `box-sizing: border-box` and
`min-width`, as we would previously assume these dimensions were all `0`
2025-09-10 11:41:30 +02:00

14 lines
No EOL
379 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.min-width {
background-color: red;
box-sizing: border-box;
display: inline-block;
height: 50px;
min-width: 50px;
padding: 10px;
}
</style>
</head><body><div class="min-width">1</div></body></html>