Files
gtk/testsuite/css/parser/relative-color.css
Alice Mikhaylenko 171bfde133 csscolorvalue: Fix percentage ranges for relative colors
Add tests as well, now that they can be computed at parse time.
2024-06-06 00:35:52 +04:00

65 lines
907 B
CSS

a {
color: color(from rgb(100, 200, 10) srgb g g calc(b * 2));
}
b {
color: oklab(from white l 0.1 0.2);
}
c {
color: red;
background-color: hsl(from currentcolor calc(h + 60) s l);
}
d {
color: oklab(from white r g b);
}
e {
color: rgb(from darkgoldenrod r g 100 / 50%);
}
f {
color: rgb(from rgba(30,40,50,60) r g 100 / alpha);
}
g {
color: rgb(from currentColor r g 100 / 50%);
}
h {
color: rgb(from white 100% 100% 100% / 100%);
}
i {
color: color(from white srgb 100% 100% 100% / 100%);
}
j {
color: color(from white srgb-linear 100% 100% 100% / 100%);
}
k {
color: hsl(from white 0 100% 100% / 100%);
}
l {
color: hwb(from white 0 100% 0% / 100%);
}
m {
color: hwb(from white 0 0% 100% / 100%);
}
n {
color: oklch(from white 100% 100% 0 / 100%);
}
o {
color: oklab(from white 100% 0% 0% / 100%);
}
p {
color: oklab(from white 100% 100% 100% / 100%);
}