mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:35:08 +00:00
LibWeb: Resolve align-{content,items,self} properties
This commit is contained in:
parent
6a51ef9c9b
commit
db09f0e0c1
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue