1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:57:35 +00:00

LibWeb: Support repeating-radial-gradient()s

This commit is contained in:
MacDue 2022-12-02 19:20:25 +00:00 committed by Tim Flynn
parent f539bf467c
commit 28028be2fc
4 changed files with 17 additions and 5 deletions

View file

@ -163,7 +163,7 @@ RadialGradientData resolve_radial_gradient_data(Layout::Node const& node, Gfx::F
radial_gradient.color_stop_list(), [&](auto const& length_percentage) {
return length_percentage.resolved(node, gradient_length).to_px(node) / gradient_size.width();
},
false);
radial_gradient.is_repeating());
return { resolved_color_stops };
}