mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #10249 - canaltinova:master, r=jdm
Make input elements not inherit parent containers alignment Fixes #10234 . <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10249) <!-- Reviewable:end -->
This commit is contained in:
commit
f10c01cd39
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; }
|
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,
|
button,
|
||||||
input[type="button"],
|
input[type="button"],
|
||||||
|
|
|
@ -2528,6 +2528,18 @@
|
||||||
"url": "/_mozilla/css/inline_whitespace_b.html"
|
"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": [
|
"css/input_button_margins_a.html": [
|
||||||
{
|
{
|
||||||
"path": "css/input_button_margins_a.html",
|
"path": "css/input_button_margins_a.html",
|
||||||
|
@ -8926,6 +8938,18 @@
|
||||||
"url": "/_mozilla/css/inline_whitespace_b.html"
|
"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": [
|
"css/input_button_margins_a.html": [
|
||||||
{
|
{
|
||||||
"path": "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