Bug 527459 - Tests for paddings specified in percent on text inputs. r=bz
authorDan Shearmur <dan.shearmur@semantico.com>
Tue, 28 Aug 2012 01:21:11 -0300
changeset 105686 cd551da155fb1c6d9c56f3193164ac085118728f
parent 105685 03dce8e94aa9c66c6f824089317401800af09439
child 105687 468a7e985d82f4aec1fcd40ff91cd66300cf04c9
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersbz
bugs527459
milestone18.0a1
Bug 527459 - Tests for paddings specified in percent on text inputs. r=bz
layout/reftests/forms/input-percentage-padding-ref.html
layout/reftests/forms/input-percentage-padding.html
layout/reftests/forms/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/input-percentage-padding-ref.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
+    <head>
+        <style>
+            .container {
+                width: 400px;
+                background: #ddd;
+            }
+            .text-input {
+                width: 200px; /* 50% */
+                padding: 40px; /* 10% */
+                background: #fff;
+            }
+        </style>
+    </head>
+    <body>
+        <div class="container">
+            <input type="text" class="text-input" />
+        </div>
+    </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/input-percentage-padding.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
+    <head>
+        <style>
+            .container {
+                width: 400px;
+                background: #ddd;
+            }
+            .text-input {
+                width: 50%; /* 200px */
+                padding: 10%; /* 40px */
+                background: #fff;
+            }
+        </style>
+    </head>
+    <body>
+        <div class="container">
+            <input type="text" class="text-input" />
+        </div>
+    </body>
+</html>
--- a/layout/reftests/forms/reftest.list
+++ b/layout/reftests/forms/reftest.list
@@ -76,8 +76,10 @@ include input/reftest.list
 # meter element
 include meter/reftest.list
 
 # output element
 include output/reftest.list
 
 # progress element
 include progress/reftest.list
+
+== input-percentage-padding.html input-percentage-padding-ref.html