Move image_rendering_auto_a.html and image_rendering_pixelated_a.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-11-05 16:17:27 +01:00
parent 0cf602f7d8
commit 41a9502688
6 changed files with 50 additions and 2 deletions

View file

@ -1559,6 +1559,30 @@
"url": "/_mozilla/css/hide_after_create.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
"references": [
[
"/_mozilla/css/image_rendering_pixelated_a.html",
"!="
]
],
"url": "/_mozilla/css/image_rendering_auto_a.html"
}
],
"css/image_rendering_pixelated_a.html": [
{
"path": "css/image_rendering_pixelated_a.html",
"references": [
[
"/_mozilla/css/image_rendering_pixelated_ref.html",
"=="
]
],
"url": "/_mozilla/css/image_rendering_pixelated_a.html"
}
],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",
@ -6432,6 +6456,30 @@
"url": "/_mozilla/css/hide_after_create.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
"references": [
[
"/_mozilla/css/image_rendering_pixelated_a.html",
"!="
]
],
"url": "/_mozilla/css/image_rendering_auto_a.html"
}
],
"css/image_rendering_pixelated_a.html": [
{
"path": "css/image_rendering_pixelated_a.html",
"references": [
[
"/_mozilla/css/image_rendering_pixelated_ref.html",
"=="
]
],
"url": "/_mozilla/css/image_rendering_pixelated_a.html"
}
],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that `image-rendering: auto` uses bilinear filtering. -->
<link rel=mismatch href=image_rendering_pixelated_a.html>
<style>
img {
position: absolute;
top: 0;
left: 0;
}
</style>
</head>
<body>
<img width=100 height=50 src=4x2.png>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that `image-rendering: pixelated` causes nearest-neighbor interpolation to be used. -->
<link rel=match href=image_rendering_pixelated_ref.html>
<style>
img {
position: absolute;
top: 0;
left: 0;
image-rendering: -moz-crisp-edges; /* for testing in Firefox */
image-rendering: pixelated;
}
</style>
</head>
<body>
<img width=100 height=50 src=4x2.png>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that `image-rendering: pixelated` causes nearest-neighbor interpolation to be used. -->
<style>
section {
position: absolute;
width: 50px;
height: 25px;
}
#a, #d {
background: red;
}
#b, #c {
background: blue;
}
#a, #b {
top: 0;
}
#c, #d {
top: 25px;
}
#a, #c {
left: 0;
}
#b, #d {
left: 50px;
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
<section id=c></section>
<section id=d></section>
</body>
</html>