mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +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
Notes:
sideshowbarker
2024-07-16 20:44:03 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/da060eedb1 Pull-request: https://github.com/SerenityOS/serenity/pull/20848 Reviewed-by: https://github.com/AtkinsSJ
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())
|
||||
return IdentifierStyleValue::create(ValueID::MaxContent);
|
||||
// FIXME: Support fit-content(<length>)
|
||||
if (size.is_fit_content())
|
||||
return IdentifierStyleValue::create(ValueID::FitContent);
|
||||
TODO();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue