Move background_origin_a.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-10-09 17:02:50 +02:00
parent af1ba43010
commit 6ce531e78b
4 changed files with 25 additions and 1 deletions

View file

@ -267,6 +267,18 @@
"url": "/_mozilla/css/background_none_a.html"
}
],
"css/background_origin_a.html": [
{
"path": "css/background_origin_a.html",
"references": [
[
"/_mozilla/css/background_origin_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_origin_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@ -1316,6 +1328,18 @@
"url": "/_mozilla/css/background_none_a.html"
}
],
"css/background_origin_a.html": [
{
"path": "css/background_origin_a.html",
"references": [
[
"/_mozilla/css/background_origin_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_origin_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",

View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=background_origin_ref.html>
<style>
#foo1 {
background: url(400x400_green.png);
background-origin: padding-box;
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
#foo2 {
background: url(400x400_green.png);
background-origin: border-box;
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
#foo3 {
background: url(400x400_green.png);
background-origin: content-box;
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
</style>
</head>
<body>
<div id=foo1></div>
<div id=foo2></div>
<div id=foo3></div>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<style>
#foo1 {
background: url(400x400_green.png);
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
#foo2 {
background: url(400x400_green.png);
background-position: -20px -20px;
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
#foo3 {
background: url(400x400_green.png);
background-position: 20px 20px;
background-repeat: no-repeat;
width: 400px;
height: 400px;
padding: 20px;
border: 20px dotted red;
}
</style>
</head>
<body>
<div id=foo1></div>
<div id=foo2></div>
<div id=foo3></div>
</body>
</html>