From da060eedb1ed67124f91f98e63ac3c3a951fea8d Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 30 Aug 2023 11:53:50 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index 56df223a78..ce6236644a 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -230,6 +230,8 @@ static NonnullRefPtr style_value_for_size(Size const& size) if (size.is_max_content()) return IdentifierStyleValue::create(ValueID::MaxContent); // FIXME: Support fit-content() + if (size.is_fit_content()) + return IdentifierStyleValue::create(ValueID::FitContent); TODO(); }