mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
LibWeb: Do not treat size of abspos items as definite
This fixes the issue when size of abspos items is considered to be resolvable without performing layout which is not correct in the scenarious when top/right/bottom/left properties are not auto.
This commit is contained in:
parent
1c991e5582
commit
473848be0e
4 changed files with 30 additions and 0 deletions
|
@ -215,6 +215,7 @@ void LayoutState::UsedValues::set_node(NodeWithStyleAndBoxModelMetrics& node, Us
|
|||
// 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.is_absolutely_positioned()
|
||||
&& node.display().is_block_outside()
|
||||
&& node.parent()
|
||||
&& !node.parent()->is_floating()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue