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:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
4
testsuite/gsk/nodeparser/srgb-high-accuracy.node
Normal file
4
testsuite/gsk/nodeparser/srgb-high-accuracy.node
Normal file
@@ -0,0 +1,4 @@
|
||||
color {
|
||||
bounds: 0 0 50 50;
|
||||
color: color(srgb 0.999 0 0);
|
||||
}
|
||||
Reference in New Issue
Block a user