mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Resolve align-{content,items,self} properties
This commit is contained in:
committed by
Andreas Kling
parent
6a51ef9c9b
commit
db09f0e0c1
@@ -235,6 +235,12 @@ ErrorOr<RefPtr<StyleValue const>> ResolvedCSSStyleDeclaration::style_value_for_p
|
||||
return TRY(ColorStyleValue::create(accent_color.value()));
|
||||
return TRY(IdentifierStyleValue::create(ValueID::Auto));
|
||||
}
|
||||
case PropertyID::AlignContent:
|
||||
return TRY(IdentifierStyleValue::create(to_value_id(layout_node.computed_values().align_content())));
|
||||
case PropertyID::AlignItems:
|
||||
return TRY(IdentifierStyleValue::create(to_value_id(layout_node.computed_values().align_items())));
|
||||
case PropertyID::AlignSelf:
|
||||
return TRY(IdentifierStyleValue::create(to_value_id(layout_node.computed_values().align_self())));
|
||||
case PropertyID::Background: {
|
||||
auto maybe_background_color = property(PropertyID::BackgroundColor);
|
||||
auto maybe_background_image = property(PropertyID::BackgroundImage);
|
||||
|
||||
Reference in New Issue
Block a user