aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2016-04-15 15:36:56 -0700
committerMichael Howell <michael@notriddle.com>2016-04-15 16:01:32 -0700
commit2ecadc913aaf16a4dbaaf881857448a60cac0080 (patch)
treee7d84ccfab25f48f6fdaf315b564b8c129bf3293
parent03be4583e0adde8c1331697a1440e9a32f1b4dcc (diff)
downloadservo-2ecadc913aaf16a4dbaaf881857448a60cac0080.tar.gz
servo-2ecadc913aaf16a4dbaaf881857448a60cac0080.zip
Add reftest for #10625
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/absolute_line_height_after_float.html6
-rw-r--r--tests/wpt/mozilla/tests/css/absolute_line_height_after_float_ref.html4
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 121842c43ff..d56fdb61efc 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -106,6 +106,18 @@
"url": "/_mozilla/css/absolute_inline_containing_block_a.html"
}
],
+ "css/absolute_line_height_after_float.html": [
+ {
+ "path": "css/absolute_line_height_after_float.html",
+ "references": [
+ [
+ "/_mozilla/css/absolute_line_height_after_float_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/absolute_line_height_after_float.html"
+ }
+ ],
"css/absolute_table.html": [
{
"path": "css/absolute_table.html",
@@ -6732,6 +6744,18 @@
"url": "/_mozilla/css/absolute_inline_containing_block_a.html"
}
],
+ "css/absolute_line_height_after_float.html": [
+ {
+ "path": "css/absolute_line_height_after_float.html",
+ "references": [
+ [
+ "/_mozilla/css/absolute_line_height_after_float_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/absolute_line_height_after_float.html"
+ }
+ ],
"css/absolute_table.html": [
{
"path": "css/absolute_table.html",
diff --git a/tests/wpt/mozilla/tests/css/absolute_line_height_after_float.html b/tests/wpt/mozilla/tests/css/absolute_line_height_after_float.html
new file mode 100644
index 00000000000..b8fe85ef6ec
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/absolute_line_height_after_float.html
@@ -0,0 +1,6 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Line-height should be respected after a float</title>
+<link rel="match" href="absolute_line_height_after_float_ref.html">
+<div style="float: left; padding: 0 0 0 1px;"></div>
+<span style="position: absolute; right: 0; top: 0; line-height: 100px;">X</span>
diff --git a/tests/wpt/mozilla/tests/css/absolute_line_height_after_float_ref.html b/tests/wpt/mozilla/tests/css/absolute_line_height_after_float_ref.html
new file mode 100644
index 00000000000..87b5a67edef
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/absolute_line_height_after_float_ref.html
@@ -0,0 +1,4 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Reference</title>
+<span style="position: absolute; right: 0; top: 0; line-height: 100px;">X</span>