mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Some flex items have definite size after flexing
This patch implements two of the special "definite size" rules from the CSS-FLEXBOX-1 spec. https://drafts.csswg.org/css-flexbox-1/#definite-sizes
This commit is contained in:
parent
02c59fe8c9
commit
69243947d5
2 changed files with 28 additions and 0 deletions
|
@ -107,6 +107,8 @@ private:
|
|||
|
||||
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);
|
||||
void set_has_definite_cross_size(Box const&, bool);
|
||||
void set_offset(Box const&, float main_offset, float cross_offset);
|
||||
void set_main_axis_first_margin(FlexItem&, float margin);
|
||||
void set_main_axis_second_margin(FlexItem&, float margin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue