Merge branch 'wip/otte/for-main' into 'main'

gsk: Don't print any sRGB color as rgb() or rgba()

See merge request GNOME/gtk!7619
This commit is contained in:
Benjamin Otte
2024-08-17 19:28:07 +00:00
9 changed files with 247 additions and 125 deletions

View File

@@ -431,6 +431,7 @@ node_parser_tests = [
'shadow-fail.node',
'shadow-fail.ref.node',
'shadow-fail.errors',
'srgb-high-accuracy.node',
'string-error.errors',
'string-error.node',
'string-error.ref.node',

View File

@@ -4,7 +4,7 @@ color {
}
color {
bounds: 100 100 200 300;
color: rgb(1,1,0);
color: color(srgb 0.00392157 0.00196078 0.00117647);
}
color {
bounds: 100 100 200 300;

View File

@@ -1 +1,2 @@
<data>:2:27-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
<data>:2:10-27: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:6:27-28: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@@ -1,3 +1,7 @@
color {
color: color(srgb 1 2 3 4 5 6);
color: color(srgb 1 2 3);
}
color {
color: color(srgb 1 1 1 1 1 1);
}

View File

@@ -2,3 +2,7 @@ color {
bounds: 0 0 50 50;
color: rgb(255,255,255);
}
color {
bounds: 0 0 50 50;
color: rgb(255,255,255);
}

View File

@@ -0,0 +1,4 @@
color {
bounds: 0 0 50 50;
color: color(srgb 0.999 0 0);
}