LibWeb: Create IdentifierStyleValue for fit-content size declarations

This doesn't quite resolve the FIXME, because we still don't support the
fit-content(percentage) syntax.
This commit is contained in:
Andrew Kaster 2023-08-30 11:53:50 +02:00 committed by Andrew Kaster
parent 33a3f0e134
commit da060eedb1

View file

@ -230,6 +230,8 @@ static NonnullRefPtr<StyleValue const> style_value_for_size(Size const& size)
if (size.is_max_content())
return IdentifierStyleValue::create(ValueID::MaxContent);
// FIXME: Support fit-content(<length>)
if (size.is_fit_content())
return IdentifierStyleValue::create(ValueID::FitContent);
TODO();
}