Files
gtk/testsuite/css/parser/relative-color.ref.css
Matthias Clasen f74b8f715a css: Fix legacy relative colors
If the color was specified using the legacy rgb(), we must accept
values in the range [0, 255]. But when serializing it as
color(srgb...), we must scale those values to [0, 1].

Update the one affected test.
2024-07-08 16:09:35 -04:00

61 lines
702 B
CSS

a {
color: color(srgb 0.784314 0.784314 0.0784314);
}
b {
color: oklab(1 0.1 0.2);
}
c {
background-color: hsl(from currentcolor calc(h + 60) s l / alpha);
color: rgb(255,0,0);
}
e {
color: color(srgb 0.721569 0.52549 0.392157 / 0.5);
}
f {
color: color(srgb 0.117647 0.156863 0.392157);
}
g {
color: color(from currentcolor srgb r g 0.39215686274509803 / 50%);
}
h {
color: color(srgb 1 1 1);
}
i {
color: color(srgb 1 1 1);
}
j {
color: color(srgb-linear 1 1 1);
}
k {
color: color(srgb 1 1 1);
}
l {
color: color(srgb 1 1 1);
}
m {
color: color(srgb 0 0 0);
}
n {
color: oklch(1 0.4 0);
}
o {
color: oklab(1 -0.4 -0.4);
}
p {
color: oklab(1 0.4 0.4);
}