mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00: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:
parent
7f81c8fba2
commit
72d5394b8c
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue