mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
LibWeb: Fix inline-block width computation with no specified width
Undefined width should be treated the same as width:auto;
This commit is contained in:
parent
aec54af04f
commit
e8d6691470
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ void BlockFormattingContext::compute_width_for_floating_box(Box& box)
|
|||
if (margin_right.is_auto())
|
||||
margin_right = zero_value;
|
||||
|
||||
auto width = style.width();
|
||||
auto width = style.width().resolved_or_auto(box, width_of_containing_block);
|
||||
|
||||
// If 'width' is computed as 'auto', the used value is the "shrink-to-fit" width.
|
||||
if (width.is_auto()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue