mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb: Fix table width algorithm when available space is a constraint
Handle available space more carefully when computing a table width, in order to avoid creating a definite infinite width when available space width is max-content, as it's the case in calculate_max_content_width. The constraint is thus correctly propagated by the time we cache the computed value, which was previously rejected by the hash function due to being definite but infinite instead of max-content.
This commit is contained in:
parent
b86ca27692
commit
75e87c32f2
4 changed files with 27 additions and 1 deletions
|
@ -51,6 +51,8 @@ struct LayoutState {
|
|||
|
||||
void set_indefinite_content_width();
|
||||
void set_indefinite_content_height();
|
||||
void set_min_content_width();
|
||||
void set_max_content_width();
|
||||
|
||||
// NOTE: These are used by FlexFormattingContext to assign a temporary main size to items
|
||||
// early on, so that descendants have something to resolve percentages against.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue