testsuite: Check errors not just for line, but for full range

Instead of just checking that the line of the error message is correct,
assert that start and end position are on the correct character offset.

Also fix all the tests to conform to this.
This commit is contained in:
Benjamin Otte 2019-04-11 04:33:08 +02:00
parent 49f8b571b9
commit f37573f8dc
97 changed files with 451 additions and 400 deletions

View File

@ -1 +1 @@
animation-crash-3.12.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
animation-crash-3.12.css:2:14-18: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-01.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-01.css:1:9-10: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-02.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-02.css:1:9-12: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1,3 @@
at-invalid-03.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-03.css:1:13-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-03.css:1:9-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
at-invalid-03.css:1:1-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,3 @@
at-invalid-04.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-04.css:1:13-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-04.css:1:9-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
at-invalid-04.css:1:1-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,3 @@
at-invalid-05.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-05.css:1:13-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-05.css:1:9-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
at-invalid-05.css:1:1-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1 @@
at-invalid-06.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-06.css:1:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-07.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-07.css:1:1-14: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-08.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-08.css:1:20-26: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1 +1 @@
at-invalid-09.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-09.css:1:20-27: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1 +1 @@
at-invalid-10.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-10.css:1:20-21: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-11.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-11.css:1:20-21: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-12.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-12.css:1:38-44: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-13.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-13.css:1:32-35: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-14.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-14.css:1:25-28: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-15.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-15.css:1:36-37: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-16.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-16.css:1:30-31: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-17.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-17.css:1:25-26: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-18.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-18.css:1:39-40: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-19.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-19.css:1:30-31: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
at-invalid-20.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-20.css:1:15-19: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,2 +1,2 @@
at-invalid-21.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-21.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-21.css:1:1-11: error: GTK_CSS_PARSER_ERROR_SYNTAX
at-invalid-21.css:1:31-32: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -0,0 +1 @@
@define-color color darker ( @blue ) ;

View File

@ -0,0 +1 @@
at-invalid-22.css:1:21-27: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
@define-color color darker ( @blue ) ;
@define-color color darker( @blue ) ;

View File

@ -1 +1 @@
@define-color color mix(shade (#121212, 0.5), mix (rgb(10%,20%,100%), @blue,0.5), 0.2);
@define-color color mix(shade(#121212, 0.5), mix(rgb(10%,20%,100%), @blue,0.5), 0.2);

View File

@ -1 +1 @@
background-position-errors.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position-errors.css:2:24-28: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,14 +1,12 @@
background-position.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:18: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:42: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:66: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:70: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:90: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:102: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:110: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:122: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:126: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:150: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:154: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:6:28-31: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:18:28-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:26:28-31: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:38:29-33: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:42:29-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:66:30-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:70:30-35: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:90:31-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:102:31-37: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:110:31-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:150:28-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
background-position.css:154:28-33: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -109,9 +109,11 @@ db {
}
eb {
background-position: left;
}
fb {
background-position: right;
}
gb {

View File

@ -1 +1 @@
border-infloop-3.12.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-infloop-3.12.css:2:25-28: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,13 +1,13 @@
border-radius-shorthand.css:64: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:68: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:72: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:76: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:80: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:84: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:88: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:92: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:96: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:100: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:104: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:108: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:112: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:64:18-22: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:68:22-26: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:72:26-30: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:76:30-34: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:80:36-40: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:84:40-44: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:88:44-48: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:92:48-52: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border-radius-shorthand.css:96:18-19: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:100:18-19: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:104:23-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:108:34-37: error: GTK_CSS_PARSER_ERROR_SYNTAX
border-radius-shorthand.css:112:44-47: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,8 +1,8 @@
border.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:30: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:34: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:42: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:46: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:50: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:54: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:26:25-29: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:30:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:34:23-25: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border.css:38:23-27: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
border.css:42:23-29: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:46:29-35: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:50:31-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
border.css:54:29-30: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,7 +1,3 @@
a {
margin-left: calc(calc(1px));
}
b {
margin-left: calc(1px + 2s);
}
@ -59,7 +55,7 @@ o {
}
p {
margin-left: calc((((((1px))));
margin-left: calc((((((1px))));));
}
q {
@ -73,3 +69,7 @@ r {
s {
margin-left: calc(1px + (error));
}
t {
margin-left: calc((3px + 4px and a lot of junk));
}

View File

@ -1,19 +1,19 @@
calc-errors.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:10: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:14: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:18: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:22: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:34: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:42: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:46: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:50: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:54: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:58: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:62: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:66: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:70: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:74: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:2:27-29: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:6:27-29: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:10:21-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:14:27-30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:18:25-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:22:21-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:26:27-30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:30:21-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:34:27-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:38:27-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:42:25-30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:46:25-30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:50:27-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:54:27-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:58:33-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:62:35-36: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:66:27-30: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:70:28-33: error: GTK_CSS_PARSER_ERROR_SYNTAX
calc-errors.css:74:32-49: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,6 +1,3 @@
a {
}
b {
}
@ -54,3 +51,6 @@ r {
s {
}
t {
}

View File

@ -37,3 +37,7 @@ i {
j {
border-bottom-right-radius: calc((1 + 1 + (1 + 1) + 1) * 1px) calc((1 / 1) * 1px);
}
k {
margin-left: calc(calc(1px));
}

View File

@ -37,3 +37,7 @@ i {
j {
border-bottom-right-radius: 5px 1px;
}
k {
margin-left: 1px;
}

View File

@ -1 +1,2 @@
close-at-end-of-file.css:3: error: GTK_CSS_PARSER_ERROR_SYNTAX
close-at-end-of-file.css:2:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
close-at-end-of-file.css:1:5-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -25,3 +25,8 @@ f {
g {
color: rgba(1,2,3,4,5);
}
h {
color: rgb(100%,0,0);
}

View File

@ -1,7 +1,8 @@
colors-errors.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:10: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:14: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:18: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:22: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:2:10-12: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
colors-errors.css:6:10-13: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
colors-errors.css:10:10-16: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
colors-errors.css:14:10-18: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
colors-errors.css:18:10-23: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:22:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:26:22-23: error: GTK_CSS_PARSER_ERROR_SYNTAX
colors-errors.css:30:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -18,3 +18,6 @@ f {
g {
}
h {
}

View File

@ -14,10 +14,6 @@ d {
color: rgba(100%,0%,0%,1);
}
e {
color: rgb(100%,0,0);
}
f {
color: #f00;
}

View File

@ -14,10 +14,6 @@ d {
color: rgb(255,0,0);
}
e {
color: rgb(255,0,0);
}
f {
color: rgb(255,0,0);
}

View File

@ -1,7 +1,7 @@
p { color:green }
p { color:green; color } /* malformed declaration missing ':', value */
p { color:red; color; color:green } /* same with expected recovery */
p { color:green; color: } /* malformed declaration missing value */
p { color:red; color:; color:green } /* same with expected recovery */
p { color:green; color{;color:maroon} } /* unexpected tokens { } */
p { color:red; color{;color:maroon}; color:green } /* same with recovery */
a { color:green }
b { color:green; color } /* malformed declaration missing ':', value */
c { color:red; color; color:green } /* same with expected recovery */
d { color:green; color: } /* malformed declaration missing value */
e { color:red; color:; color:green } /* same with expected recovery */
f { color:green; color{;color:maroon} } /* unexpected tokens { } */
g { color:red; color{;color:maroon}; color:green } /* same with recovery */

View File

@ -1,6 +1,13 @@
css-21-malformed-declarations.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:3: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:4: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:5: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:7: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:1:5-17: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:2:24-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:2:18-24: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:3:23-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:3:25-37: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:4:25-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:4:18-25: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:5:24-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:5:26-38: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:6:23-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:6:18-39: error: GTK_CSS_PARSER_WARNING_SYNTAX
css-21-malformed-declarations.css:7:23-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-declarations.css:7:40-52: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1,27 +1,27 @@
p {
a {
color: rgb(0,128,0);
}
p {
b {
color: rgb(0,128,0);
}
p {
c {
color: rgb(0,128,0);
}
p {
d {
color: rgb(0,128,0);
}
p {
e {
color: rgb(0,128,0);
}
p {
f {
color: rgb(0,128,0);
}
p {
g {
color: rgb(0,128,0);
}

View File

@ -1,4 +1,4 @@
css-21-malformed-statements.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:3: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:4: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:1:3-8: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:2:1-5: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:3:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX
css-21-malformed-statements.css:4:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-01.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-01.css:1:11-12: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-01.css:1:5-11: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-02.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-02.css:1:24-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-02.css:1:18-24: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-03.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-03.css:1:21-22: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-03.css:1:23-35: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-04.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-04.css:1:25-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-04.css:1:18-25: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-05.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-05.css:1:22-23: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-05.css:1:24-36: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-06.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-06.css:1:23-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-06.css:1:18-39: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1,2 @@
declarations-invalid-07.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-07.css:1:21-22: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-07.css:1:38-50: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1,3 +1,3 @@
declarations-invalid-08.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-08.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-08.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations-invalid-08.css:1:5-12: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
declarations-invalid-08.css:1:5-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations-invalid-08.css:1:3-2:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -0,0 +1 @@
declarations-valid-02.css:1:5-21: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1 +1 @@
* { font: bold 15px sans }
* { font: bold 15px sans ;}

View File

@ -1 +1 @@
* { color: red }
* { color: red; }

View File

@ -1 +1 @@
* { font: /* comment here */ 15px Sans }
* { font: /* comment here */ 15px Sans; }

View File

@ -1 +1 @@
* { color: red; background-color: shade (@bg_color, 0.5) }
* { color: red; background-color: shade(@bg_color, 0.5); }

View File

@ -1 +1 @@
* { margin: 5px }
* { margin: 5px ; }

View File

@ -1 +1 @@
* { margin: 5px 10px }
* { margin: 5px 10px; }

View File

@ -1 +1 @@
* { margin: 5px 10px 3px }
* { margin: 5px 10px 3px; }

View File

@ -1 +1 @@
* { margin: 5px 10px 3px 5px }
* { margin: 5px 10px 3px 5px; }

View File

@ -1 +1 @@
* { padding: 5px }
* { padding: 5px; }

View File

@ -1 +1 @@
* { padding: 5px 10px }
* { padding: 5px 10px; }

View File

@ -1 +1 @@
* { border-width: 5em; border-radius: 10ex }
* { border-width: 5em; border-radius: 10ex; }

View File

@ -1 +1 @@
* { border-color: #ff00ff }
* { border-color: #ff00ff; }

View File

@ -1 +1 @@
* { font: 10pt definitelydoesnotexist }
* { font: 10pt definitelydoesnotexist; }

View File

@ -1 +1 @@
* { border-image: url("./test.png") 3 4 3 4 stretch }
* { border-image: url("./test.png") 3 4 3 4 stretch ; }

View File

@ -1 +1 @@
* { border-image: url("./test.png") 3 4 3 4 repeat stretch}
* { border-image: url("./test.png") 3 4 3 4 repeat stretch;}

View File

@ -1 +1 @@
* { transition: 150ms ease-in-out }
* { transition: 150ms ease-in-out ;}

View File

@ -1 +1 @@
* { transition: 1s linear loop }
* { transition: 1s linear loop; }

View File

@ -1 +1 @@
* { color: red; background-color: transparent }
* { color: red; background-color: transparent; }

View File

@ -1,14 +1,26 @@
declarations.css:24: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:28: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:30: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:32: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:34: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:36: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:40: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:42: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:44: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:46: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:48: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:50: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:1:5-6: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:1:6-7: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:1:7-8: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:8:5-6: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:12:3-4: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:13:3-4: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:14:3-4: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:19:3-20:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:22:5-22: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:24:16-17: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:24:5-16: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:26:15-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:28:17-18: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:28:5-17: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:30:18-19: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:30:5-18: error: GTK_CSS_PARSER_WARNING_SYNTAX
declarations.css:32:17-18: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:34:16-17: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:36:17-18: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:38:16-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:40:15-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:42:17-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:44:18-29: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:46:17-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:48:16-17: error: GTK_CSS_PARSER_ERROR_SYNTAX
declarations.css:50:17-18: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
does-not-exist.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
does-not-exist.css:2:3-17: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1 +1 @@
freed-string-in-error-messages.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
freed-string-in-error-messages.css:2:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,5 +1,5 @@
@import url("import-cyclic-2.css");
a {
padding-top: 1px
padding-top: 1px;
}

View File

@ -1 +1 @@
import-cyclic-3.css:1: error: GTK_CSS_PARSER_ERROR_IMPORT
import-cyclic-3.css:1:1-36: error: GTK_CSS_PARSER_ERROR_IMPORT

View File

@ -1,5 +1,5 @@
@import url("import-cyclic-3.css");
a {
padding-top: 2px
padding-top: 2px;
}

View File

@ -1 +1 @@
import-cyclic-1.css:1: error: GTK_CSS_PARSER_ERROR_IMPORT
import-cyclic-1.css:1:1-36: error: GTK_CSS_PARSER_ERROR_IMPORT

View File

@ -1,5 +1,5 @@
@import url("import-cyclic-1.css");
a {
padding-top: 3px
padding-top: 3px;
}

View File

@ -1 +1 @@
import-cyclic-2.css:1: error: GTK_CSS_PARSER_ERROR_IMPORT
import-cyclic-2.css:1:1-36: error: GTK_CSS_PARSER_ERROR_IMPORT

View File

@ -1 +1 @@
import-nonexistant.css:1: error: GTK_CSS_PARSER_ERROR_IMPORT
import-nonexistant.css:1:1-93: error: GTK_CSS_PARSER_ERROR_IMPORT

View File

@ -1 +1,2 @@
import-recursive.css:1: error: GTK_CSS_PARSER_ERROR_IMPORT
import-recursive.css:1:1-37: error: GTK_CSS_PARSER_ERROR_IMPORT
import-recursive.css:4:3-5:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -101,6 +101,9 @@ test_data = [
'at-invalid-21.css',
'at-invalid-21.errors',
'at-invalid-21.ref.css',
'at-invalid-22.css',
'at-invalid-22.errors',
'at-invalid-22.ref.css',
'at-valid-01.css',
'at-valid-01.ref.css',
'at-valid-02.css',
@ -247,6 +250,7 @@ test_data = [
'declarations-valid-01.css',
'declarations-valid-01.ref.css',
'declarations-valid-02.css',
'declarations-valid-02.errors',
'declarations-valid-02.ref.css',
'declarations-valid-03.css',
'declarations-valid-03.ref.css',
@ -344,6 +348,7 @@ test_data = [
'min-width.css',
'min-width.ref.css',
'no-semicolon.css',
'no-semicolon.errors',
'no-semicolon.ref.css',
'not.css',
'not.ref.css',

View File

@ -0,0 +1,2 @@
no-semicolon.css:2:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
no-semicolon.css:4:7-25: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -1,292 +1,292 @@
a:nth-last-child( odd ) { color: red }
a:nth-child(even ) { color: red }
b:nth-child( /**/n) { color: red }
a:nth-last-child( odd ) { color: red; }
a:nth-child(even ) { color: red; }
b:nth-child( /**/n) { color: red; }
c:nth-child(/**/ n +
0) { color: red }
d:nth-child( n + 1) { color: red }
e:nth-child( /**/n+ 2) { color: red }
f:nth-last-child( n+ 10) { color: red }
0) { color: red; }
d:nth-child( n + 1) { color: red; }
e:nth-child( /**/n+ 2) { color: red; }
f:nth-last-child( n+ 10) { color: red; }
g:nth-child(
n) { color: red }
n) { color: red; }
h:nth-child(/**/ n
- 0) { color: red }
- 0) { color: red; }
i:nth-child(
/**/ n -1) { color: red }
j:nth-child(/**/ /**/n - 2) { color: red }
/**/ n -1) { color: red; }
j:nth-child(/**/ /**/n - 2) { color: red; }
k:nth-last-child( n -
10) { color: red }
l:nth-last-child( /**/0) { color: red }
10) { color: red; }
l:nth-last-child( /**/0) { color: red; }
m:nth-child(
0n) { color: red }
0n) { color: red; }
n:nth-last-child( /**/0/**/n
+
0) { color: red }
o:nth-last-child( 0 n + 1) { color: red }
p:nth-last-child( 0n+/**/2) { color: red }
0) { color: red; }
o:nth-last-child( 0 n + 1) { color: red; }
p:nth-last-child( 0n+/**/2) { color: red; }
q:nth-last-child(
0 n + 10) { color: red }
0 n + 10) { color: red; }
r:nth-child( 0
n) { color: red }
n) { color: red; }
s:nth-child(
0 n -/**/0) { color: red }
0 n -/**/0) { color: red; }
t:nth-last-child(
0
n
- 1) { color: red }
u:nth-last-child( 0 n -/**/2) { color: red }
v:nth-last-child( 0n -10) { color: red }
w:nth-last-child( 1) { color: red }
- 1) { color: red; }
u:nth-last-child( 0 n -/**/2) { color: red; }
v:nth-last-child( 0n -10) { color: red; }
w:nth-last-child( 1) { color: red; }
x:nth-child(
1n) { color: red }
1n) { color: red; }
y:nth-child(/**//**/1 n +
0) { color: red }
0) { color: red; }
z:nth-child(
1
n +
1) { color: red }
1) { color: red; }
ab:nth-child(
1 n +2) { color: red }
1 n +2) { color: red; }
bb:nth-last-child( 1n +
10) { color: red }
cb:nth-last-child(1/**/n) { color: red }
db:nth-last-child( 1 n -0) { color: red }
10) { color: red; }
cb:nth-last-child(1/**/n) { color: red; }
db:nth-last-child( 1 n -0) { color: red; }
eb:nth-child( 1 n-
1) { color: red }
1) { color: red; }
fb:nth-child(/**/
1 n-
2) { color: red }
gb:nth-child( 1n -10) { color: red }
hb:nth-last-child(/**/ 2) { color: red }
ib:nth-child( 2 n) { color: red }
2) { color: red; }
gb:nth-child( 1n -10) { color: red; }
hb:nth-last-child(/**/ 2) { color: red; }
ib:nth-child( 2 n) { color: red; }
jb:nth-last-child( 2 n +
0) { color: red }
kb:nth-child(/**/ 2n+ 1) { color: red }
0) { color: red; }
kb:nth-child(/**/ 2n+ 1) { color: red; }
lb:nth-child(/**//**/2/**/n
+ 2) { color: red }
+ 2) { color: red; }
mb:nth-last-child(
2
n +
10) { color: red }
10) { color: red; }
nb:nth-last-child(
2n) { color: red }
2n) { color: red; }
ob:nth-child(
2 n - 0) { color: red }
2 n - 0) { color: red; }
pb:nth-last-child(
2n/**/-/**/1) { color: red }
qb:nth-child( /**/2 n - 2) { color: red }
2n/**/-/**/1) { color: red; }
qb:nth-child( /**/2 n - 2) { color: red; }
rb:nth-last-child(
2/**/n - 10) { color: red }
sb:nth-child( 10) { color: red }
2/**/n - 10) { color: red; }
sb:nth-child( 10) { color: red; }
tb:nth-last-child(
10n) { color: red }
10n) { color: red; }
ub:nth-last-child(
10/**/n/**/+ 0) { color: red }
10/**/n/**/+ 0) { color: red; }
vb:nth-child( 10
n+/**/1) { color: red }
n+/**/1) { color: red; }
wb:nth-last-child( 10 n +
2) { color: red }
xb:nth-child( 10/**/n + 10) { color: red }
2) { color: red; }
xb:nth-child( 10/**/n + 10) { color: red; }
yb:nth-last-child( 10
n) { color: red }
n) { color: red; }
zb:nth-last-child( 10 n
-0) { color: red }
-0) { color: red; }
ac:nth-last-child(10n/**/-
1) { color: red }
1) { color: red; }
bc:nth-child( 10 n
-/**/2) { color: red }
-/**/2) { color: red; }
cc:nth-child(
/**/10 n
- 10) { color: red }
dc:nth-child( even ) { color: red }
- 10) { color: red; }
dc:nth-child( even ) { color: red; }
ec:nth-last-child(
+
/**/n) { color: red }
/**/n) { color: red; }
fc:nth-child( + n+
0) { color: red }
0) { color: red; }
gc:nth-child(/**/+
n + 1) { color: red }
hc:nth-last-child(/**/+ n +/**/2) { color: red }
n + 1) { color: red; }
hc:nth-last-child(/**/+ n +/**/2) { color: red; }
ic:nth-last-child( +
n +10) { color: red }
jc:nth-last-child( + n) { color: red }
kc:nth-last-child( +/**/ n - 0) { color: red }
lc:nth-last-child( +n - 1) { color: red }
n +10) { color: red; }
jc:nth-last-child( + n) { color: red; }
kc:nth-last-child( +/**/ n - 0) { color: red; }
lc:nth-last-child( +n - 1) { color: red; }
mc:nth-child(
+ n-2) { color: red }
nc:nth-last-child(+ n -10) { color: red }
+ n-2) { color: red; }
nc:nth-last-child(+ n -10) { color: red; }
oc:nth-child(
+ 0) { color: red }
pc:nth-child( +0 n) { color: red }
+ 0) { color: red; }
pc:nth-child( +0 n) { color: red; }
qc:nth-last-child( +/**/0/**/n
+
0) { color: red }
rc:nth-last-child(/**/+ 0 n + 1) { color: red }
0) { color: red; }
rc:nth-last-child(/**/+ 0 n + 1) { color: red; }
sc:nth-last-child(
+0 n/**/+2) { color: red }
+0 n/**/+2) { color: red; }
tc:nth-child( + 0
n+ 10) { color: red }
n+ 10) { color: red; }
uc:nth-child(
+ 0
n) { color: red }
n) { color: red; }
vc:nth-last-child(
+ 0n
-
0) { color: red }
wc:nth-last-child(/**/+/**/0n - 1) { color: red }
0) { color: red; }
wc:nth-last-child(/**/+/**/0n - 1) { color: red; }
xc:nth-child( +
0n - 2) { color: red }
0n - 2) { color: red; }
yc:nth-last-child(
+ 0/**/n -/**/10) { color: red }
+ 0/**/n -/**/10) { color: red; }
zc:nth-child(+
1) { color: red }
1) { color: red; }
ad:nth-child(/**/+ 1
n) { color: red }
n) { color: red; }
bd:nth-last-child(+/**/1 n +
0) { color: red }
0) { color: red; }
cd:nth-child(/**/+/**/1
n +
1) { color: red }
1) { color: red; }
dd:nth-child(/**/+
1 n +2) { color: red }
1 n +2) { color: red; }
ed:nth-child(
+ 1n +
10) { color: red }
fd:nth-child( + 1 n) { color: red }
10) { color: red; }
fd:nth-child( + 1 n) { color: red; }
gd:nth-child( + 1
n -0) { color: red }
hd:nth-child(+ 1n- 1) { color: red }
id:nth-child( + 1 n- 2) { color: red }
jd:nth-last-child( +/**/1n -/**/10) { color: red }
kd:nth-last-child( + 2) { color: red }
ld:nth-child(/**/+ 2n) { color: red }
md:nth-last-child( + 2 n/**/+/**/0) { color: red }
n -0) { color: red; }
hd:nth-child(+ 1n- 1) { color: red; }
id:nth-child( + 1 n- 2) { color: red; }
jd:nth-last-child( +/**/1n -/**/10) { color: red; }
kd:nth-last-child( + 2) { color: red; }
ld:nth-child(/**/+ 2n) { color: red; }
md:nth-last-child( + 2 n/**/+/**/0) { color: red; }
nd:nth-child(/**/+ 2
n + 1) { color: red }
n + 1) { color: red; }
od:nth-child( + 2 n +
2) { color: red }
2) { color: red; }
pd:nth-last-child(
+ 2/**/n +/**/10) { color: red }
qd:nth-last-child(+/**/2/**/n) { color: red }
rd:nth-child(+ 2 n/**/-0) { color: red }
+ 2/**/n +/**/10) { color: red; }
qd:nth-last-child(+/**/2/**/n) { color: red; }
rd:nth-child(+ 2 n/**/-0) { color: red; }
sd:nth-child( + 2
n - 1) { color: red }
n - 1) { color: red; }
td:nth-last-child( +2
n
- 2) { color: red }
- 2) { color: red; }
ud:nth-last-child( + 2
n - 10) { color: red }
vd:nth-last-child(+ 10) { color: red }
wd:nth-child( +10n) { color: red }
n - 10) { color: red; }
vd:nth-last-child(+ 10) { color: red; }
wd:nth-child( +10n) { color: red; }
xd:nth-last-child(/**/+
10
n + 0) { color: red }
yd:nth-last-child(/**/+ 10 n +/**/1) { color: red }
zd:nth-last-child( + 10 n+ 2) { color: red }
n + 0) { color: red; }
yd:nth-last-child(/**/+ 10 n +/**/1) { color: red; }
zd:nth-last-child( + 10 n+ 2) { color: red; }
ae:nth-last-child(
+ 10 n +/**/10) { color: red }
be:nth-last-child( + 10/**/n) { color: red }
ce:nth-last-child( + 10/**/n- 0) { color: red }
+ 10 n +/**/10) { color: red; }
be:nth-last-child( + 10/**/n) { color: red; }
ce:nth-last-child( + 10/**/n- 0) { color: red; }
de:nth-child(+10 n-
1) { color: red }
ee:nth-last-child( +/**/10 n/**/-2) { color: red }
1) { color: red; }
ee:nth-last-child( +/**/10 n/**/-2) { color: red; }
fe:nth-last-child( +
10/**/n -10) { color: red }
10/**/n -10) { color: red; }
ge:nth-last-child(
odd/**/) { color: red }
he:nth-last-child(/**/- n) { color: red }
odd/**/) { color: red; }
he:nth-last-child(/**/- n) { color: red; }
ie:nth-last-child(
-
n +
0) { color: red }
je:nth-child(-/**/ n + 1) { color: red }
ke:nth-last-child(/**/- n +2) { color: red }
0) { color: red; }
je:nth-child(-/**/ n + 1) { color: red; }
ke:nth-last-child(/**/- n +2) { color: red; }
le:nth-last-child(/**/- n
+ 10) { color: red }
+ 10) { color: red; }
me:nth-last-child(
-/**/ n) { color: red }
-/**/ n) { color: red; }
ne:nth-child(
- n
- 0) { color: red }
oe:nth-last-child(- /**/n-1) { color: red }
- 0) { color: red; }
oe:nth-last-child(- /**/n-1) { color: red; }
pe:nth-child( -
n - 2) { color: red }
qe:nth-last-child(/**/-/**//**/n/**/- 10) { color: red }
re:nth-child( -/**/0) { color: red }
n - 2) { color: red; }
qe:nth-last-child(/**/-/**//**/n/**/- 10) { color: red; }
re:nth-child( -/**/0) { color: red; }
se:nth-last-child(/**/-
0 n) { color: red }
0 n) { color: red; }
te:nth-child(
- 0 n+
0) { color: red }
0) { color: red; }
ue:nth-child( -
0/**/n+/**/1) { color: red }
0/**/n+/**/1) { color: red; }
ve:nth-last-child(
-/**/0 n
+ 2) { color: red }
+ 2) { color: red; }
we:nth-last-child(
-0 n/**/+ 10) { color: red }
-0 n/**/+ 10) { color: red; }
xe:nth-last-child(- 0
n) { color: red }
n) { color: red; }
ye:nth-last-child( -0 n
- 0) { color: red }
ze:nth-last-child( - 0 n -/**/1) { color: red }
af:nth-last-child( -0/**/n - 2) { color: red }
- 0) { color: red; }
ze:nth-last-child( - 0 n -/**/1) { color: red; }
af:nth-last-child( -0/**/n - 2) { color: red; }
bf:nth-child( - 0n
-10) { color: red }
cf:nth-child( - 1) { color: red }
-10) { color: red; }
cf:nth-child( - 1) { color: red; }
df:nth-child( - 1
n) { color: red }
ef:nth-last-child(/**/-1 n+ 0) { color: red }
n) { color: red; }
ef:nth-last-child(/**/-1 n+ 0) { color: red; }
ff:nth-child(
-/**/1 n/**/+
1) { color: red }
1) { color: red; }
gf:nth-last-child(-
1 n + 2) { color: red }
1 n + 2) { color: red; }
hf:nth-last-child( -
1 n
+
10) { color: red }
10) { color: red; }
if:nth-child(
- 1 n) { color: red }
jf:nth-last-child(- 1 n - 0) { color: red }
- 1 n) { color: red; }
jf:nth-last-child(- 1 n - 0) { color: red; }
kf:nth-child(- 1 n -
1) { color: red }
lf:nth-child( - 1/**/n -/**/2) { color: red }
1) { color: red; }
lf:nth-child( - 1/**/n -/**/2) { color: red; }
mf:nth-last-child( -
1/**/n -/**/10) { color: red }
nf:nth-last-child(/**/-/**/2) { color: red }
of:nth-child( - 2/**/n) { color: red }
1/**/n -/**/10) { color: red; }
nf:nth-last-child(/**/-/**/2) { color: red; }
of:nth-child( - 2/**/n) { color: red; }
pf:nth-child(
- 2
n + 0) { color: red }
qf:nth-child( - 2 n +/**/1) { color: red }
n + 0) { color: red; }
qf:nth-child( - 2 n +/**/1) { color: red; }
rf:nth-child(/**/- 2
n +
2) { color: red }
2) { color: red; }
sf:nth-last-child( -/**/2/**/n
+ 10) { color: red }
tf:nth-child( -2 n) { color: red }
uf:nth-child(/**/- 2n - 0) { color: red }
vf:nth-last-child( -2 n-1) { color: red }
wf:nth-last-child(- 2/**/n - 2) { color: red }
+ 10) { color: red; }
tf:nth-child( -2 n) { color: red; }
uf:nth-child(/**/- 2n - 0) { color: red; }
vf:nth-last-child( -2 n-1) { color: red; }
wf:nth-last-child(- 2/**/n - 2) { color: red; }
xf:nth-child( -2
n-
10) { color: red }
10) { color: red; }
yf:nth-child(
-10) { color: red }
zf:nth-child( - 10/**/n) { color: red }
-10) { color: red; }
zf:nth-child( - 10/**/n) { color: red; }
ag:nth-child(
- 10 n+ 0) { color: red }
- 10 n+ 0) { color: red; }
bg:nth-last-child(
-/**/10n/**/+1) { color: red }
cg:nth-child( -/**/10 n +2) { color: red }
-/**/10n/**/+1) { color: red; }
cg:nth-child( -/**/10 n +2) { color: red; }
dg:nth-last-child(/**/-
10 n + 10) { color: red }
eg:nth-last-child(/**/- 10 n) { color: red }
fg:nth-last-child(- 10n - 0) { color: red }
gg:nth-last-child( -10n - 1) { color: red }
hg:nth-child(/**/- 10 n - 2) { color: red }
10 n + 10) { color: red; }
eg:nth-last-child(/**/- 10 n) { color: red; }
fg:nth-last-child(- 10n - 0) { color: red; }
gg:nth-last-child( -10n - 1) { color: red; }
hg:nth-child(/**/- 10 n - 2) { color: red; }
ig:nth-child(/**/-
10 n -10) { color: red }
10 n -10) { color: red; }

View File

@ -1,2 +1,2 @@
property-name-errors.css:2: error: GTK_CSS_PARSER_ERROR_UNKNWON_VALUE
property-name-errors.css:3: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
property-name-errors.css:2:3-23: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
property-name-errors.css:3:3-28: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1,6 +1,6 @@
pseudo-classes-unknown.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:5: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:9: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:13: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:17: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:21: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:1:1-17: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:5:1-18: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:9:1-3: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:13:1-11: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:17:12-13: error: GTK_CSS_PARSER_ERROR_SYNTAX
pseudo-classes-unknown.css:21:4-48: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1 +1 @@
radial-background-position-error.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-background-position-error.css:2:34-38: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,3 +1,3 @@
radial-positions.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-positions.css:5: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-positions.css:8: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-positions.css:2:45-51: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-positions.css:5:50-56: error: GTK_CSS_PARSER_ERROR_SYNTAX
radial-positions.css:8:50-56: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1 +1 @@
single-slash.css:1: error: GTK_CSS_PARSER_ERROR_SYNTAX
single-slash.css:1:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -142,16 +142,14 @@ parsing_error_cb (GtkCssProvider *provider,
const GError *error,
GString *errors)
{
const GtkCssLocation *end_location;
char *basename;
char *section_string;
end_location = gtk_css_section_get_end_location (section);
section_string = gtk_css_section_to_string (section);
basename = g_file_get_basename (gtk_css_section_get_file (section));
g_string_append_printf (errors,
"%s:%zu: error: ",
basename, end_location->lines + 1);
g_free (basename);
"%s: error: ",
section_string);
g_free (section_string);
if (error->domain == GTK_CSS_PARSER_ERROR)
append_error_value (errors, GTK_TYPE_CSS_PARSER_ERROR, error->code);

View File

@ -1,2 +1,2 @@
text-shadow-invalid-but-worked-in-3.12.css:2: error: GTK_CSS_PARSER_ERROR_SYNTAX
text-shadow-invalid-but-worked-in-3.12.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
text-shadow-invalid-but-worked-in-3.12.css:2:16-21: error: GTK_CSS_PARSER_ERROR_SYNTAX
text-shadow-invalid-but-worked-in-3.12.css:6:22-23: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,31 +1,31 @@
value-none.css:3: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:4: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:6: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:7: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:8: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:9: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:10: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:12: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:13: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:14: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:16: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:17: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:19: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:20: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:22: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:23: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:24: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:25: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:27: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:29: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:31: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:32: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:34: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:35: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:36: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:37: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:39: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:40: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:41: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:42: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:3:20-24: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:4:21-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:6:22-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:7:22-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:8:24-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:9:30-34: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:10:31-35: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:12:24-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:13:24-28: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:14:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:16:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:17:22-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:19:22-26: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:20:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:22:23-27: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:23:21-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:24:27-31: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:25:28-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:27:21-25: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:29:10-14: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:31:14-18: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:32:15-19: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:34:16-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:35:18-22: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:36:16-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:37:17-21: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:38:15-19: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:39:19-23: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:40:17-21: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:41:18-22: error: GTK_CSS_PARSER_ERROR_SYNTAX
value-none.css:42:16-20: error: GTK_CSS_PARSER_ERROR_SYNTAX