mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
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`
14 lines
No EOL
379 B
HTML
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> |