mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Flex-items aren't affected by float nor clear
There are a few other things to notice, but they don't seem to be implemented yet.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
7f81c8fba2
commit
72d5394b8c
Notes:
sideshowbarker
2024-07-18 16:50:00 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/72d5394b8cd Pull-request: https://github.com/SerenityOS/serenity/pull/7669 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
@@ -169,6 +169,9 @@ bool Node::is_floating() const
|
||||
{
|
||||
if (!has_style())
|
||||
return false;
|
||||
// flex-items don't float.
|
||||
if (is_flex_item())
|
||||
return false;
|
||||
return computed_values().float_() != CSS::Float::None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user