mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
LibWeb: Mark flex item cross sizes as definite when spec asks us to
The CSS-FLEXBOX-1 spec gives us two situations in which flex item cross sizes should be considered definite. Both of them happen *during* flex layout, which is super finicky but it is what it is.
This commit is contained in:
parent
83bb16ede3
commit
60ac258a48
2 changed files with 46 additions and 0 deletions
|
@ -106,6 +106,8 @@ private:
|
|||
Optional<float> transferred_size_suggestion(FlexItem const&) const;
|
||||
float content_size_suggestion(FlexItem const&) const;
|
||||
|
||||
bool flex_item_is_stretched(FlexItem const&) const;
|
||||
|
||||
void set_main_size(Box const&, float size);
|
||||
void set_cross_size(Box const&, float size);
|
||||
void set_has_definite_main_size(Box const&, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue