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

LibWeb: Parse repeating-conic-gradient()s

This commit is contained in:
MacDue 2022-11-06 14:51:10 +00:00 committed by Sam Atkins
parent bee4df7bfb
commit 2c2b9fb1d7
3 changed files with 38 additions and 25 deletions

View file

@ -1751,7 +1751,7 @@ String LinearGradientStyleValue::to_string() const
if (m_gradient_type == GradientType::WebKit)
builder.append("-webkit-"sv);
if (m_repeating == Repeating::Yes)
if (is_repeating())
builder.append("repeating-"sv);
builder.append("linear-gradient("sv);
m_direction.visit(
@ -1958,6 +1958,8 @@ bool PositionValue::operator==(PositionValue const& other) const
String ConicGradientStyleValue::to_string() const
{
StringBuilder builder;
if (is_repeating())
builder.append("repeating-"sv);
builder.append("conic-gradient("sv);
bool has_from_angle = false;
bool has_at_position = false;