1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibWeb: Parse repeating-linear-gradient()

Including `-webkit-repeating-linear-gradient()`
This commit is contained in:
MacDue 2022-08-16 17:09:49 +01:00 committed by Andreas Kling
parent b123309b0d
commit f9a685437f
3 changed files with 35 additions and 7 deletions

View file

@ -1491,6 +1491,8 @@ String LinearGradientStyleValue::to_string() const
if (m_gradient_type == GradientType::WebKit)
builder.append("-webkit-"sv);
if (m_repeating == Repeating::Yes)
builder.append("repeating-"sv);
builder.append("linear-gradient("sv);
m_direction.visit(
[&](SideOrCorner side_or_corner) {