mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00
LibWeb: Incorporate spread-distance into box-shadow rendering
We also pass whether the shadow goes inside or outside the element. Only outer shadows are rendered currently, and inner ones may want to be handled separately from them, as they will never interfere with each other.
This commit is contained in:
parent
10c6c77b5c
commit
103613a3a9
7 changed files with 27 additions and 12 deletions
|
@ -523,8 +523,7 @@ RefPtr<StyleValue> ResolvedCSSStyleDeclaration::style_value_for_property(Layout:
|
|||
return {};
|
||||
|
||||
auto make_box_shadow_style_value = [](BoxShadowData const& data) {
|
||||
// FIXME: Add extra properties to BoxShadowData so we can include them here!
|
||||
return BoxShadowStyleValue::create(data.color, data.offset_x, data.offset_y, data.blur_radius, Length::make_px(0), BoxShadowPlacement::Outer);
|
||||
return BoxShadowStyleValue::create(data.color, data.offset_x, data.offset_y, data.blur_radius, data.spread_distance, data.placement);
|
||||
};
|
||||
|
||||
if (box_shadow_layers.size() == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue