mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Add support for "align-content: normal" in CSS parser
This commit is contained in:
parent
fa24fbf120
commit
b395cfccb0
Notes:
sideshowbarker
2024-07-16 22:26:05 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: b395cfccb0
Pull-request: https://github.com/SerenityOS/serenity/pull/22576
Issue: https://github.com/SerenityOS/serenity/issues/22555
4 changed files with 5 additions and 3 deletions
|
@ -1637,6 +1637,7 @@ void FlexFormattingContext::align_all_flex_lines()
|
|||
break;
|
||||
}
|
||||
|
||||
case CSS::AlignContent::Normal:
|
||||
case CSS::AlignContent::Stretch:
|
||||
start_of_current_line = 0;
|
||||
break;
|
||||
|
@ -2146,7 +2147,7 @@ void FlexFormattingContext::handle_align_content_stretch()
|
|||
return;
|
||||
|
||||
// align-content is stretch,
|
||||
if (flex_container().computed_values().align_content() != CSS::AlignContent::Stretch)
|
||||
if (flex_container().computed_values().align_content() != CSS::AlignContent::Stretch && flex_container().computed_values().align_content() != CSS::AlignContent::Normal)
|
||||
return;
|
||||
|
||||
// and the sum of the flex lines' cross sizes is less than the flex container’s inner cross size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue