mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
LibWeb: Do not try to join floats into anonymous block
Making floats to join anonymous block caused regressions in Acid2 Test so let's leave it to be only absolute blocks who might be joined into anonymous block when possible.
This commit is contained in:
parent
aa08c825ec
commit
3d74d72bcb
Notes:
sideshowbarker
2024-07-17 04:13:23 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/3d74d72bcb Pull-request: https://github.com/SerenityOS/serenity/pull/16146
@ -84,11 +84,10 @@ static Layout::Node& insertion_parent_for_block_node(Layout::NodeWithStyle& layo
|
||||
return layout_parent;
|
||||
}
|
||||
|
||||
if (layout_node.is_floating() || layout_node.is_absolutely_positioned()) {
|
||||
// TODO: Floats should probably also be able to have inline siblings
|
||||
if (layout_node.is_absolutely_positioned() && layout_parent.last_child()->children_are_inline()) {
|
||||
// Block is out-of-flow, it can have inline siblings if necessary.
|
||||
if (layout_parent.last_child()->children_are_inline()) {
|
||||
return *layout_parent.last_child();
|
||||
}
|
||||
return *layout_parent.last_child();
|
||||
}
|
||||
|
||||
if (!layout_parent.children_are_inline()) {
|
||||
|
Loading…
Reference in New Issue
Block a user