ladybird/Tests/LibWeb/Layout/input/flex/button-layout-inside-flex.html
Jelle Raaijmakers 087601832a LibWeb: Set fit-content width for buttons in used values, not computed
For button layouts, we were overriding the computed `width` value with
`fit-content` in `TreeBuilder::wrap_in_button_layout_if_needed()`. But
the spec asks us to set the _used value_ instead, so we now actually
calculate the fit-content width and set the box' content width to it.

Fixes #2516.
2025-08-18 11:04:34 +01:00

12 lines
185 B
HTML

<!DOCTYPE html>
<style>
div {
display: flex;
flex-direction: column;
}
span {
background-color: blue;
}
</style>
<div><button>foo</button></div>
<div><span>bar</span></div>