1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibWeb: Don't distribute excess width to constrained columns

Bring our implementation closer to the specification, which distributes
excess width to unconstrained columns first.
This commit is contained in:
Andi Gallo 2023-06-28 03:06:03 +00:00 committed by Andreas Kling
parent 6bd4d44f73
commit 9cb4fe6a6f
4 changed files with 49 additions and 1 deletions

View file

@ -69,6 +69,8 @@ private:
CSSPixels max_size { 0 };
CSSPixels used_width { 0 };
double percentage_width { 0 };
// Store whether the column is constrained: https://www.w3.org/TR/css-tables-3/#constrainedness
bool is_constrained { false };
};
struct Row {