mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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
|
@ -778,7 +778,7 @@ Vector<BoxShadowData> StyleProperties::box_shadow() const
|
|||
auto value = value_or_error.value();
|
||||
|
||||
auto make_box_shadow_data = [](BoxShadowStyleValue const& box) {
|
||||
return BoxShadowData { box.offset_x(), box.offset_y(), box.blur_radius(), box.color() };
|
||||
return BoxShadowData { box.color(), box.offset_x(), box.offset_y(), box.blur_radius(), box.spread_distance(), box.placement() };
|
||||
};
|
||||
|
||||
if (value->is_value_list()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue