mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Don't assert when flex-item has align-self: end
We were missing the code to convert this to `align-items: end`.
This commit is contained in:
parent
55c1d8ba29
commit
38a6b7ad3d
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/38a6b7ad3d Pull-request: https://github.com/SerenityOS/serenity/pull/19506
3 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x16 [BFC] children: not-inline
|
||||
Box <body> at (8,8) content-size 784x0 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 0x0 flex-item [BFC] children: not-inline
|
4
Tests/LibWeb/Layout/input/flex/align-self-end-crash.html
Normal file
4
Tests/LibWeb/Layout/input/flex/align-self-end-crash.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!doctype html><style>
|
||||
body { display: flex; }
|
||||
div { align-self: end; }
|
||||
</style><div>
|
|
@ -1447,6 +1447,8 @@ CSS::AlignItems FlexFormattingContext::alignment_for_item(Box const& box) const
|
|||
switch (box.computed_values().align_self()) {
|
||||
case CSS::AlignSelf::Auto:
|
||||
return flex_container().computed_values().align_items();
|
||||
case CSS::AlignSelf::End:
|
||||
return CSS::AlignItems::End;
|
||||
case CSS::AlignSelf::Normal:
|
||||
return CSS::AlignItems::Normal;
|
||||
case CSS::AlignSelf::SelfStart:
|
||||
|
|
Loading…
Reference in a new issue