From dbe43237cc67e57889c6d69fd7a6264dd8846e4c Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 18 Oct 2015 21:49:53 +0200 Subject: [PATCH 1/3] Move inline-block styling to user-agent and add button Fixes #8064 --- resources/servo.css | 1 - resources/user-agent.css | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/servo.css b/resources/servo.css index 5fdc469b699..354717deb70 100644 --- a/resources/servo.css +++ b/resources/servo.css @@ -1,4 +1,3 @@ -input, textarea, select { display: inline-block; } 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; } 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, diff --git a/resources/user-agent.css b/resources/user-agent.css index 0971ee8eee4..bfdb1607465 100644 --- a/resources/user-agent.css +++ b/resources/user-agent.css @@ -251,6 +251,7 @@ input[type="submit"], select, button { box-sizing: border-box; } +input, textarea, select, button { display: inline-block; } hr { color: gray; border-style: inset; border-width: 1px; margin: 0.5em auto; } From c5ecd65fecc0042271321ae045d1989e65ac73ab Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Tue, 20 Oct 2015 00:21:47 +0100 Subject: [PATCH 2/3] Add reftest for css button width --- tests/wpt/mozilla/tests/css/button_css_width.html | 8 ++++++++ tests/wpt/mozilla/tests/css/button_css_width_ref.html | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 tests/wpt/mozilla/tests/css/button_css_width.html create mode 100644 tests/wpt/mozilla/tests/css/button_css_width_ref.html diff --git a/tests/wpt/mozilla/tests/css/button_css_width.html b/tests/wpt/mozilla/tests/css/button_css_width.html new file mode 100644 index 00000000000..8013fca55c0 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/button_css_width.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/wpt/mozilla/tests/css/button_css_width_ref.html b/tests/wpt/mozilla/tests/css/button_css_width_ref.html new file mode 100644 index 00000000000..8e4ef5646be --- /dev/null +++ b/tests/wpt/mozilla/tests/css/button_css_width_ref.html @@ -0,0 +1,3 @@ + + + From 4153291361fe2c9bb1e212f3fa51aaec0513de14 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Wed, 21 Oct 2015 00:03:41 +0100 Subject: [PATCH 3/3] Update test manifest --- tests/wpt/mozilla/meta/MANIFEST.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 98efe89c687..63c0c8a7eef 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -947,6 +947,18 @@ "url": "/_mozilla/css/case-insensitive-font-family.html" } ], + "css/button_css_width.html": [ + { + "path": "css/button_css_width.html", + "references": [ + [ + "/_mozilla/css/button_css_width_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/button_css_width.html" + } + ], "css/class-namespaces.html": [ { "path": "css/class-namespaces.html", @@ -5472,6 +5484,18 @@ "url": "/_mozilla/css/case-insensitive-font-family.html" } ], + "css/button_css_width.html": [ + { + "path": "css/button_css_width.html", + "references": [ + [ + "/_mozilla/css/button_css_width_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/button_css_width.html" + } + ], "css/class-namespaces.html": [ { "path": "css/class-namespaces.html",