aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-08-07 03:45:30 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-08-07 03:45:30 +0530
commit2114ffd0b9742784d2723aad3a7c163e8d06b040 (patch)
tree039b9c0bae87b751c0387f55c58cc146bab6218e
parent730ee4d341cdaa4a1dcc1a3517f45db1f522ea94 (diff)
parent29c4643a4ab9d3573ff52952d6d914b3a51e23a4 (diff)
downloadservo-2114ffd0b9742784d2723aad3a7c163e8d06b040.tar.gz
servo-2114ffd0b9742784d2723aad3a7c163e8d06b040.zip
Rollup merge of #7039 - jdm:squashed-6992, r=jdm
Add a reftest for <body background>. Fixes #6838 Rebased from #6992. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7039) <!-- Reviewable:end -->
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/background.html17
-rw-r--r--tests/wpt/mozilla/tests/css/background_ref.html12
-rw-r--r--tests/wpt/mozilla/tests/css/green.pngbin0 -> 1053 bytes
4 files changed, 53 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 8dda0aba215..20cbfefdf8b 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -63,6 +63,18 @@
"url": "/_mozilla/css/absolute_hypothetical_float.html"
}
],
+ "css/background.html": [
+ {
+ "path": "css/background.html",
+ "references": [
+ [
+ "/_mozilla/css/background_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/background.html"
+ }
+ ],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@@ -806,6 +818,18 @@
"url": "/_mozilla/css/absolute_hypothetical_float.html"
}
],
+ "css/background.html": [
+ {
+ "path": "css/background.html",
+ "references": [
+ [
+ "/_mozilla/css/background_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/background.html"
+ }
+ ],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
diff --git a/tests/wpt/mozilla/tests/css/background.html b/tests/wpt/mozilla/tests/css/background.html
new file mode 100644
index 00000000000..7153c7e192b
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/background.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel=match href="background_ref.html">
+<title>body with background attribute</title>
+<style>
+body {
+ background-image: url("green.png");
+}
+
+</style>
+</head>
+<body>
+<div>Background: test</div>
+</body>
+</html>
+
diff --git a/tests/wpt/mozilla/tests/css/background_ref.html b/tests/wpt/mozilla/tests/css/background_ref.html
new file mode 100644
index 00000000000..765b479cf57
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/background_ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>body with background attribute</title>
+<style>
+</style>
+</head>
+<body background="green.png">
+<div>Background: test</div>
+</body>
+</html>
+
diff --git a/tests/wpt/mozilla/tests/css/green.png b/tests/wpt/mozilla/tests/css/green.png
new file mode 100644
index 00000000000..484469eb140
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/green.png
Binary files differ