Move background_size_a.html to wpt reftests.

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

View file

@ -375,6 +375,18 @@
"url": "/_mozilla/css/background_repeat_y_a.html"
}
],
"css/background_size_a.html": [
{
"path": "css/background_size_a.html",
"references": [
[
"/_mozilla/css/background_size_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_size_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@ -1532,6 +1544,18 @@
"url": "/_mozilla/css/background_repeat_y_a.html"
}
],
"css/background_size_a.html": [
{
"path": "css/background_size_a.html",
"references": [
[
"/_mozilla/css/background_size_ref.html",
"=="
]
],
"url": "/_mozilla/css/background_size_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",

View file

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=background_size_ref.html>
<style>
section {
position: absolute;
top: 0;
width: 40px;
}
#tall {
left: 0;
}
#wide {
left: 40px;
}
div {
width: 40px;
height: 40px;
image-rendering: -moz-crisp-edges; /* for comparison with Firefox */
image-rendering: pixelated;
}
#tall div {
background-image: url(2x4.png);
}
#wide div {
background-image: url(4x2.png);
}
.a {
background-size: 40px 20px;
}
.b {
background-size: 40px 40px;
}
.c {
background-size: 40px;
}
.d {
background-size: cover;
}
.e {
background-size: contain;
}
</style>
</head>
<body>
<section id=tall>
<div class=a></div>
<div class=b></div>
<div class=c></div>
<div class=d></div>
<div class=e></div>
</section>
<section id=wide>
<div class=a></div>
<div class=b></div>
<div class=c></div>
<div class=d></div>
<div class=e></div>
</section>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<style>
img {
image-rendering: -moz-crisp-edges; /* for comparison with Firefox */
image-rendering: pixelated;
}
html, body {
margin: 0;
}
</style>
</head>
<body>
<img src=background_size.png>
</body>
</html>