Move background_size_shorthand_a.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-10-12 15:54:37 +02:00
parent a0726af56b
commit ecf6f77ef9
4 changed files with 25 additions and 1 deletions

View file

@ -387,6 +387,18 @@
"url": "/_mozilla/css/background_size_a.html"
}
],
"css/background_size_shorthand_a.html": [
{
"path": "css/background_size_shorthand_a.html",
"references": [
[
"/_mozilla/css/background_size_shorthand_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_size_shorthand_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@ -1556,6 +1568,18 @@
"url": "/_mozilla/css/background_size_a.html"
}
],
"css/background_size_shorthand_a.html": [
{
"path": "css/background_size_shorthand_a.html",
"references": [
[
"/_mozilla/css/background_size_shorthand_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_size_shorthand_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=background_size_shorthand_ref.html>
<!-- Tests that the `background-size` shorthand works. -->
<style>
section {
width: 100px;
height: 100px;
border: solid black 1px;
}
#a {
background: 10px 10px / 80px 80px url(rust_logo.png) no-repeat;
}
#b {
background: url(rust_logo.png) 10px 10px / 80px 80px no-repeat;
}
#c {
background: no-repeat url(rust_logo.png) 10px 10px / 80px 80px;
}
</style>
</head>
<body>
<section id=a>&nbsp;</section>
<section id=b>&nbsp;</section>
<section id=c>&nbsp;</section>
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that the `background-size` shorthand works. -->
<style>
section {
width: 100px;
height: 100px;
border: solid black 1px;
background-image: url(rust_logo.png);
background-position: 10px 10px;
background-size: 80px 80px;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<section>&nbsp;</section>
<section>&nbsp;</section>
<section>&nbsp;</section>
</body>
</html>