mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibWeb: Don't include flex line margins in inner flex item cross sizes
In cases where flex item cross size is based on the flex line cross size, the spec specifically says to transfer the *outer* cross size of the line. We were ignoring the "outer" part. This patch fixes that by subtracting the cross margins from the size.
This commit is contained in:
parent
030dbfd2a9
commit
8eb022a57d
2 changed files with 25 additions and 2 deletions
|
@ -30,6 +30,11 @@ private:
|
|||
float main_after { 0 };
|
||||
float cross_before { 0 };
|
||||
float cross_after { 0 };
|
||||
|
||||
bool main_before_is_auto { false };
|
||||
bool main_after_is_auto { false };
|
||||
bool cross_before_is_auto { false };
|
||||
bool cross_after_is_auto { false };
|
||||
};
|
||||
|
||||
struct FlexItem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue