mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Floating boxes with width:auto don't have definite width
Since layout is required in order to determine the width of such boxes, they should not be marked as having definite width initially.
This commit is contained in:
parent
913d9221aa
commit
ce0e4b71a3
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ void LayoutState::UsedValues::set_node(NodeWithStyleAndBoxModelMetrics& node, Us
|
|||
if (size.is_auto()) {
|
||||
// NOTE: The width of a non-flex-item block is considered definite if it's auto and the containing block has definite width.
|
||||
if (width
|
||||
&& !node.is_floating()
|
||||
&& node.display().is_block_outside()
|
||||
&& node.parent()
|
||||
&& !node.parent()->is_floating()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue