mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 10:37:41 +00:00
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:
parent
33a3f0e134
commit
da060eedb1
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,8 @@ static NonnullRefPtr<StyleValue const> style_value_for_size(Size const& size)
|
||||||
if (size.is_max_content())
|
if (size.is_max_content())
|
||||||
return IdentifierStyleValue::create(ValueID::MaxContent);
|
return IdentifierStyleValue::create(ValueID::MaxContent);
|
||||||
// FIXME: Support fit-content(<length>)
|
// FIXME: Support fit-content(<length>)
|
||||||
|
if (size.is_fit_content())
|
||||||
|
return IdentifierStyleValue::create(ValueID::FitContent);
|
||||||
TODO();
|
TODO();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue