1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

LibWeb: Return grid container width from automatic_content_width in GFC

automatic_content_width() should return grid container width that is
supposed to be set by determine_intrinsic_size_of_grid_container().
This commit is contained in:
Aliaksandr Kalenik 2023-05-13 12:34:45 +03:00 committed by Andreas Kling
parent 644e4f4c99
commit d187862f76
3 changed files with 31 additions and 1 deletions

View file

@ -1521,7 +1521,7 @@ void GridFormattingContext::determine_intrinsic_size_of_grid_container(Available
CSSPixels GridFormattingContext::automatic_content_width() const
{
return greatest_child_width(context_box());
return m_state.get(grid_container()).content_width();
}
CSSPixels GridFormattingContext::automatic_content_height() const