css: Add parser tests for line-height

This commit is contained in:
Matthias Clasen
2021-08-07 18:04:16 -04:00
parent ae767dc5bf
commit 8b2f28eee3
12 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
a {
line-height: -1;
}

View File

@@ -0,0 +1 @@
line-height-invalid1.css:2:16-18: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@@ -0,0 +1,3 @@
a {
line-height: -200%;
}

View File

@@ -0,0 +1 @@
line-height-invalid2.css:2:16-21: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@@ -0,0 +1,3 @@
a {
line-height: -2em;
}

View File

@@ -0,0 +1 @@
line-height-invalid3.css:2:16-20: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@@ -0,0 +1,27 @@
a {
line-height: initial;
}
b {
line-height: inherit;
}
c {
line-height: unset;
}
d {
line-height: normal;
}
e {
line-height: 1.5;
}
f {
line-height: 200%;
}
g {
line-height: 2em;
}

View File

@@ -0,0 +1,27 @@
a {
line-height: initial;
}
b {
line-height: inherit;
}
c {
line-height: unset;
}
d {
line-height: normal;
}
e {
line-height: 1.5;
}
f {
line-height: 200%;
}
g {
line-height: 2em;
}

View File

@@ -384,6 +384,17 @@ test_data = [
'letter-spacing.ref.css',
'linear-gradient.css',
'linear-gradient.ref.css',
'line-height.css',
'line-height.ref.css',
'line-height-invalid1.css',
'line-height-invalid1.errors',
'line-height-invalid1.ref.css',
'line-height-invalid2.css',
'line-height-invalid2.errors',
'line-height-invalid2.ref.css',
'line-height-invalid3.css',
'line-height-invalid3.errors',
'line-height-invalid3.ref.css',
'margin.css',
'margin.ref.css',
'min-height.css',