aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2016-07-28 16:02:57 -0700
committerMichael Howell <michael@notriddle.com>2016-07-28 16:05:19 -0700
commit129d1d65140e6681588e9658b93c95fec320baef (patch)
tree298633683a5b1aef85ff5cafb42338e2ed0ca493
parentafbd0476955d64201ab1aed0e25f4162ea3e0441 (diff)
downloadservo-129d1d65140e6681588e9658b93c95fec320baef.tar.gz
servo-129d1d65140e6681588e9658b93c95fec320baef.zip
Add tests for #12492
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/textarea_space_calculation-ref.html19
-rw-r--r--tests/wpt/mozilla/tests/css/textarea_space_calculation.html21
3 files changed, 64 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index d150aa4538c..6fd9384d01e 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -5272,6 +5272,18 @@
"url": "/_mozilla/css/text_transform_uppercase_a.html"
}
],
+ "css/textarea_space_calculation.html": [
+ {
+ "path": "css/textarea_space_calculation.html",
+ "references": [
+ [
+ "/_mozilla/css/textarea_space_calculation-ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/textarea_space_calculation.html"
+ }
+ ],
"css/transform_3d.html": [
{
"path": "css/transform_3d.html",
@@ -14390,6 +14402,18 @@
"url": "/_mozilla/css/text_transform_uppercase_a.html"
}
],
+ "css/textarea_space_calculation.html": [
+ {
+ "path": "css/textarea_space_calculation.html",
+ "references": [
+ [
+ "/_mozilla/css/textarea_space_calculation-ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/textarea_space_calculation.html"
+ }
+ ],
"css/transform_3d.html": [
{
"path": "css/transform_3d.html",
diff --git a/tests/wpt/mozilla/tests/css/textarea_space_calculation-ref.html b/tests/wpt/mozilla/tests/css/textarea_space_calculation-ref.html
new file mode 100644
index 00000000000..b777beb062b
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/textarea_space_calculation-ref.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<title>REFERENCE: textarea does not take up more space than it takes up</title>
+<style>
+textarea{height:2em;width:2em}
+div{width:2em;font-size:12px;line-height:3px}
+</style>
+<h1>To pass, no red should be visible</h1>
+<div>
+<textarea>
+1
+2
+3
+4
+5
+6
+8
+9
+</textarea>
+</div>
diff --git a/tests/wpt/mozilla/tests/css/textarea_space_calculation.html b/tests/wpt/mozilla/tests/css/textarea_space_calculation.html
new file mode 100644
index 00000000000..20945e971b5
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/textarea_space_calculation.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>textarea does not take up more space than it takes up</title>
+<link rel="match" href="textarea_space_calculation-ref.html">
+<style>
+textarea{height:2em;width:2em}
+div{background:red;width:2em;font-size:12px;line-height:3px}
+</style>
+<h1>To pass, no red should be visible</h1>
+<div>
+<textarea>
+1
+2
+3
+4
+5
+6
+8
+9
+</textarea>
+</div>