summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/input/percentage/padding.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/forms/input/percentage/padding.html')
-rw-r--r--layout/reftests/forms/input/percentage/padding.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/forms/input/percentage/padding.html b/layout/reftests/forms/input/percentage/padding.html
new file mode 100644
index 0000000000..7b792595b4
--- /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>