mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
da41271dd5
Parse things like "in hsl hue longer". For details, see the CSS Images Module Level 4, https://www.w3.org/TR/css-images-4. This commit fixes preexisting brokenness in conic-gradient parsing and printing as well, and includes the relevant test changes. Tests included. Gradient interpolation color spaces aren't supported for rendering yet.
44 lines
875 B
CSS
44 lines
875 B
CSS
a {
|
|
background-image: conic-gradient(yellow, green);
|
|
}
|
|
|
|
b {
|
|
background-image: conic-gradient(at center, yellow 0%, green 100%);
|
|
}
|
|
|
|
c {
|
|
background-image: conic-gradient(at 50% 50%, yellow, green);
|
|
}
|
|
|
|
d {
|
|
background-image: conic-gradient(at left top, yellow, green);
|
|
}
|
|
|
|
e {
|
|
background-image: conic-gradient(at 25% bottom, red, yellow, green);
|
|
}
|
|
|
|
f {
|
|
background-image: conic-gradient(from 20deg, red, yellow 50%, green);
|
|
}
|
|
|
|
g {
|
|
background-image: conic-gradient(from 0.25turn at 20px 20px, red, yellow, green);
|
|
}
|
|
|
|
h {
|
|
background-image: conic-gradient(from 20deg in oklab, red, yellow, green);
|
|
}
|
|
|
|
i {
|
|
background-image: conic-gradient(in rec2020 at center, red, yellow, green);
|
|
}
|
|
|
|
j {
|
|
background-image: conic-gradient(in hsl longer hue from 10deg, red, yellow, green);
|
|
}
|
|
|
|
k {
|
|
background-image: conic-gradient(in srgb from -10deg at 20px 20px, red, yellow);
|
|
}
|