Fixed line-height for input and textarea + use correct font

* [fix] Input line height and styling
* [new] Input line height ref test
* [fix] Test for input in manifest
* Updated CSS tests with new expected failures.
This commit is contained in:
Joel Santos 2016-04-12 21:44:16 +01:00 committed by Per Lundberg
parent 990dd72da7
commit adf68626bd
6 changed files with 55 additions and 5 deletions

View file

@ -0,0 +1,4 @@
[transform-input-017.htm]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/10881

View file

@ -1,5 +1,4 @@
[transform-input-018.htm]
type: reftest
expected:
if os == "mac": PASS
FAIL
expected: FAIL
bug: https://github.com/servo/servo/issues/10881

View file

@ -2700,6 +2700,18 @@
"url": "/_mozilla/css/input_insertion_point_empty_a.html"
}
],
"css/input_line_height.html": [
{
"path": "css/input_line_height.html",
"references": [
[
"/_mozilla/css/input_line_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/input_line_height.html"
}
],
"css/input_placeholder.html": [
{
"path": "css/input_placeholder.html",
@ -9446,6 +9458,18 @@
"url": "/_mozilla/css/input_insertion_point_empty_a.html"
}
],
"css/input_line_height.html": [
{
"path": "css/input_line_height.html",
"references": [
[
"/_mozilla/css/input_line_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/input_line_height.html"
}
],
"css/input_placeholder.html": [
{
"path": "css/input_placeholder.html",

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Input elements shouldn't inherit parent containers line height</title>
<link rel="match" href="input_line_height_ref.html">
</head>
<body>
<div style="line-height: 100px">
<input type="text"></input>
</div>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Input elements shouldn't inherit parent containers line height</title>
</head>
<body>
<div style="line-height: 100px">
<input type="text" style="line-height: 1.8"></input>
</div>
</body>
</html>