1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

LibWeb: Parse spread-distance and inset parts of box-shadow

We do not actually use these when rendering the shadow yet.
This commit is contained in:
Sam Atkins 2022-02-08 13:47:11 +00:00 committed by Andreas Kling
parent c547bed13b
commit e5b0369dfd
4 changed files with 52 additions and 11 deletions

View file

@ -522,7 +522,8 @@ RefPtr<StyleValue> ResolvedCSSStyleDeclaration::style_value_for_property(Layout:
if (!maybe_box_shadow.has_value())
return {};
auto box_shadow_data = maybe_box_shadow.release_value();
return BoxShadowStyleValue::create(box_shadow_data.offset_x, box_shadow_data.offset_y, box_shadow_data.blur_radius, box_shadow_data.color);
// FIXME: Add extra properties to BoxShadowData so we can include them here!
return BoxShadowStyleValue::create(box_shadow_data.color, box_shadow_data.offset_x, box_shadow_data.offset_y, box_shadow_data.blur_radius, Length::make_px(0), BoxShadowPlacement::Outer);
}
case CSS::PropertyID::Width:
return style_value_for_length_percentage(layout_node.computed_values().width());