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:
parent
644e4f4c99
commit
d187862f76
3 changed files with 31 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue