mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make input elements not inherit parent containers alignment
Added a reftest for input element's alignment Added float: left beacause text-align: center centers the input's itself. Removed 'rtl' alignment
This commit is contained in:
parent
cf4fa0a9f4
commit
c13ea8a253
4 changed files with 53 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
input { background: white; min-height: 1.0em; padding: 0em; padding-left: 0.25em; padding-right: 0.25em; border: solid lightgrey 1px; color: black; white-space: nowrap; }
|
||||
input { background: white; min-height: 1.0em; padding: 0em; padding-left: 0.25em; padding-right: 0.25em; border: solid lightgrey 1px; color: black; white-space: nowrap; text-align: left; }
|
||||
textarea { background: white; min-height: 1.0em; padding: 0em; padding-left: 0.25em; padding-right: 0.25em; border: solid lightgrey 1px; color: black; white-space: pre; }
|
||||
button,
|
||||
input[type="button"],
|
||||
|
|
|
@ -2480,6 +2480,18 @@
|
|||
"url": "/_mozilla/css/inline_whitespace_b.html"
|
||||
}
|
||||
],
|
||||
"css/input_alignment_a.html": [
|
||||
{
|
||||
"path": "css/input_alignment_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/input_alignment_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/input_alignment_a.html"
|
||||
}
|
||||
],
|
||||
"css/input_button_margins_a.html": [
|
||||
{
|
||||
"path": "css/input_button_margins_a.html",
|
||||
|
@ -8818,6 +8830,18 @@
|
|||
"url": "/_mozilla/css/inline_whitespace_b.html"
|
||||
}
|
||||
],
|
||||
"css/input_alignment_a.html": [
|
||||
{
|
||||
"path": "css/input_alignment_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/input_alignment_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/input_alignment_a.html"
|
||||
}
|
||||
],
|
||||
"css/input_button_margins_a.html": [
|
||||
{
|
||||
"path": "css/input_button_margins_a.html",
|
||||
|
|
16
tests/wpt/mozilla/tests/css/input_alignment_a.html
Normal file
16
tests/wpt/mozilla/tests/css/input_alignment_a.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Input elements shouldn't inherit parent containers alignment</title>
|
||||
<link rel="match" href="input_alignment_ref.html">
|
||||
<style>
|
||||
div {
|
||||
text-align: center;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><input value="test" /></div>
|
||||
</body>
|
||||
</html>
|
12
tests/wpt/mozilla/tests/css/input_alignment_ref.html
Normal file
12
tests/wpt/mozilla/tests/css/input_alignment_ref.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Input elements shouldn't inherit parent containers alignment</title>
|
||||
<style>
|
||||
div { float: left; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><input value="test" /></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue