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 -->
This commit is contained in:
Manish Goregaokar 2015-08-07 03:45:30 +05:30
commit 2114ffd0b9
4 changed files with 53 additions and 0 deletions

View file

@ -63,6 +63,18 @@
"url": "/_mozilla/css/absolute_hypothetical_float.html" "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": [ "css/class-namespaces.html": [
{ {
"path": "css/class-namespaces.html", "path": "css/class-namespaces.html",
@ -806,6 +818,18 @@
"url": "/_mozilla/css/absolute_hypothetical_float.html" "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": [ "css/class-namespaces.html": [
{ {
"path": "css/class-namespaces.html", "path": "css/class-namespaces.html",

View file

@ -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>

View file

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB