mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
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.
12 lines
185 B
HTML
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>
|