css: Add parser tests for line-height
This commit is contained in:
3
testsuite/css/parser/line-height-invalid1.css
Normal file
3
testsuite/css/parser/line-height-invalid1.css
Normal file
@@ -0,0 +1,3 @@
|
||||
a {
|
||||
line-height: -1;
|
||||
}
|
||||
1
testsuite/css/parser/line-height-invalid1.errors
Normal file
1
testsuite/css/parser/line-height-invalid1.errors
Normal file
@@ -0,0 +1 @@
|
||||
line-height-invalid1.css:2:16-18: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
|
||||
0
testsuite/css/parser/line-height-invalid1.ref.css
Normal file
0
testsuite/css/parser/line-height-invalid1.ref.css
Normal file
3
testsuite/css/parser/line-height-invalid2.css
Normal file
3
testsuite/css/parser/line-height-invalid2.css
Normal file
@@ -0,0 +1,3 @@
|
||||
a {
|
||||
line-height: -200%;
|
||||
}
|
||||
1
testsuite/css/parser/line-height-invalid2.errors
Normal file
1
testsuite/css/parser/line-height-invalid2.errors
Normal file
@@ -0,0 +1 @@
|
||||
line-height-invalid2.css:2:16-21: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
|
||||
0
testsuite/css/parser/line-height-invalid2.ref.css
Normal file
0
testsuite/css/parser/line-height-invalid2.ref.css
Normal file
3
testsuite/css/parser/line-height-invalid3.css
Normal file
3
testsuite/css/parser/line-height-invalid3.css
Normal file
@@ -0,0 +1,3 @@
|
||||
a {
|
||||
line-height: -2em;
|
||||
}
|
||||
1
testsuite/css/parser/line-height-invalid3.errors
Normal file
1
testsuite/css/parser/line-height-invalid3.errors
Normal file
@@ -0,0 +1 @@
|
||||
line-height-invalid3.css:2:16-20: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
|
||||
0
testsuite/css/parser/line-height-invalid3.ref.css
Normal file
0
testsuite/css/parser/line-height-invalid3.ref.css
Normal file
27
testsuite/css/parser/line-height.css
Normal file
27
testsuite/css/parser/line-height.css
Normal 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;
|
||||
}
|
||||
27
testsuite/css/parser/line-height.ref.css
Normal file
27
testsuite/css/parser/line-height.ref.css
Normal 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;
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user