Bug 1344395 - Reftest for checkbox/radio controls with width/height:auto. a=test-only
authorMats Palmgren <mats@mozilla.com>
Fri, 10 Mar 2017 14:52:08 +0100
changeset 395142 95a0d4f1b06ec5a96b59c8526fe90e52c40f1abd
parent 395141 30af33a5de8ab7b4e26989466f854480641df73b
child 395143 87489ca621bdce7da3cc093b9ebff61026914eb6
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1344395
milestone54.0a2
Bug 1344395 - Reftest for checkbox/radio controls with width/height:auto. a=test-only MozReview-Commit-ID: LUqFBdNtMRE
layout/reftests/forms/input/checkbox/checkbox-radio-auto-sized-ref.html
layout/reftests/forms/input/checkbox/checkbox-radio-auto-sized.html
layout/reftests/forms/input/checkbox/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/input/checkbox/checkbox-radio-auto-sized-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html><head>
+  <meta charset="utf-8">
+  <title>Reference for bug 1344395</title>
+  <style type="text/css">
+
+input {
+  width: 11px;
+  height: 11px;
+}
+
+  </style>
+</head>
+<body>
+
+<input type="checkbox">
+<input type="radio">
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/input/checkbox/checkbox-radio-auto-sized.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html><head>
+  <meta charset="utf-8">
+  <title>Testcase for bug 1344395</title>
+  <style type="text/css">
+
+input {
+  width: auto;
+  height: auto;
+}
+
+  </style>
+</head>
+<body>
+
+<input type="checkbox">
+<input type="radio">
+
+</body>
+</html>
--- a/layout/reftests/forms/input/checkbox/reftest.list
+++ b/layout/reftests/forms/input/checkbox/reftest.list
@@ -9,8 +9,9 @@ fails-if(Android) == indeterminate-check
 fails-if(Android) == indeterminate-checked-notref.html about:blank
 fails-if(Android) == indeterminate-unchecked.html about:blank
 != indeterminate-native-checked.html indeterminate-native-checked-notref.html
 != indeterminate-native-unchecked.html indeterminate-native-unchecked-notref.html
 == indeterminate-selector.html indeterminate-selector-ref.html
 skip-if(!gtkWidget) == gtk-theme-width-height.html gtk-theme-width-height-ref.html
 skip-if(Android) == checkbox-baseline.html checkbox-baseline-ref.html # skip-if(Android) because Android use appearance:none by default for checkbox/radio.
 skip-if(Android) == checkbox-radio-color.html checkbox-radio-color-ref.html # skip-if(Android) because Android use appearance:none by default for checkbox/radio.
+skip-if(!Android) == checkbox-radio-auto-sized.html checkbox-radio-auto-sized-ref.html