Files
gtk/testsuite/css/parser/hsl.css
Alice Mikhaylenko b70bcd6bfe csscolorvalue: Add modern rgb() and hsl() syntax
Make calc() work in colors too, since we need to support degrees for hsl()
hue anyway and it goes through the same machinery. Make that work for
legacy syntax too, matching the spec.

Ignore missing components/none for now.

Ignore gdk_rgba_parser_parse(), that's also used outside css.
2024-05-21 16:32:52 +04:00

68 lines
647 B
CSS

a {
color: hsl(0, 0%, 0%);
}
b {
color: hsl(120, 100%, 50%);
}
c {
color: hsl(360, 100%, 50%);
}
d {
color: hsl(-314.159, 50%, 50%);
}
e {
color: hsl(0, 0%, 0%, 0.5);
}
f {
color: hsl(1, 2, 3);
}
g {
color: hsl(120 100% 50);
}
h {
color: hsl(120 100% 50 / 50%);
}
i {
color: hsl(0.5turn 100 50);
}
j {
color: hsla(0.5turn 100 50);
}
k {
color: hsla(calc(0.5turn + 90deg) calc(50% + 50) calc(100 / 2) / calc(1 / 2));
}
l {
color: hsl(0.5turn, 100%, 50%);
}
m {
color: hsl(1, 2 3);
}
n {
color: hsl(1 2 3 4);
}
o {
color: hsl(1 2 3 /);
}
p {
color: hsla(1 2 / 3 4);
}
q {
color: hsla(1, 2 3 / 4);
}