diff --git a/resources/servo.css b/resources/servo.css index 0c4bbeca12d..e5ed6f1bfed 100644 --- a/resources/servo.css +++ b/resources/servo.css @@ -9,7 +9,6 @@ input { color: black; font-family: sans-serif; font-size: 0.8333em; - white-space: pre; text-align: left; line-height: 1.8; } @@ -132,6 +131,10 @@ textarea { -servo-overflow-clip-box: content-box; } +input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]) { + white-space: pre; +} + textarea { overflow: auto; } diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index a0eed70e959..c6a8ecb43e8 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -1220,6 +1220,18 @@ "url": "/_mozilla/css/button_css_width.html" } ], + "css/button_whitespace_a.html": [ + { + "path": "css/button_whitespace_a.html", + "references": [ + [ + "/_mozilla/css/button_whitespace_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/button_whitespace_a.html" + } + ], "css/calc-basic.html": [ { "path": "css/calc-basic.html", @@ -14918,6 +14930,18 @@ "url": "/_mozilla/css/button_css_width.html" } ], + "css/button_whitespace_a.html": [ + { + "path": "css/button_whitespace_a.html", + "references": [ + [ + "/_mozilla/css/button_whitespace_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/button_whitespace_a.html" + } + ], "css/calc-basic.html": [ { "path": "css/calc-basic.html", diff --git a/tests/wpt/mozilla/tests/css/button_whitespace_a.html b/tests/wpt/mozilla/tests/css/button_whitespace_a.html new file mode 100644 index 00000000000..cf68d039365 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/button_whitespace_a.html @@ -0,0 +1,7 @@ + + + + + diff --git a/tests/wpt/mozilla/tests/css/button_whitespace_ref.html b/tests/wpt/mozilla/tests/css/button_whitespace_ref.html new file mode 100644 index 00000000000..651caabb1d7 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/button_whitespace_ref.html @@ -0,0 +1,5 @@ + + + + +