mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Add fit-content as a valid size value for CSS width
This commit is contained in:
@@ -64,6 +64,12 @@ Size Size::make_fit_content(Length available_space)
|
||||
return Size { Type::FitContent, move(available_space) };
|
||||
}
|
||||
|
||||
Size Size::make_fit_content()
|
||||
{
|
||||
// NOTE: We use "auto" as a stand-in for "stretch" here.
|
||||
return Size { Type::FitContent, Length::make_auto() };
|
||||
}
|
||||
|
||||
Size Size::make_none()
|
||||
{
|
||||
return Size { Type::None, Length::make_auto() };
|
||||
|
||||
Reference in New Issue
Block a user