mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user