mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move background_origin_a.html to wpt reftests.
This commit is contained in:
parent
af1ba43010
commit
6ce531e78b
4 changed files with 25 additions and 1 deletions
|
@ -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",
|
||||
|
|
41
tests/wpt/mozilla/tests/css/background_origin_a.html
Normal file
41
tests/wpt/mozilla/tests/css/background_origin_a.html
Normal 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>
|
||||
|
39
tests/wpt/mozilla/tests/css/background_origin_ref.html
Normal file
39
tests/wpt/mozilla/tests/css/background_origin_ref.html
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue