mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Move image_rendering_auto_a.html and image_rendering_pixelated_a.html to wpt reftests.
This commit is contained in:
parent
0cf602f7d8
commit
41a9502688
6 changed files with 50 additions and 2 deletions
|
@ -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",
|
||||
|
|
19
tests/wpt/mozilla/tests/css/image_rendering_auto_a.html
Normal file
19
tests/wpt/mozilla/tests/css/image_rendering_auto_a.html
Normal 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>
|
||||
|
||||
|
21
tests/wpt/mozilla/tests/css/image_rendering_pixelated_a.html
Normal file
21
tests/wpt/mozilla/tests/css/image_rendering_pixelated_a.html
Normal 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>
|
||||
|
||||
|
|
@ -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>
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue