mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move background_size_a.html to wpt reftests.
This commit is contained in:
parent
efab12af6c
commit
a0726af56b
4 changed files with 25 additions and 1 deletions
|
@ -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",
|
||||
|
|
63
tests/wpt/mozilla/tests/css/background_size_a.html
Normal file
63
tests/wpt/mozilla/tests/css/background_size_a.html
Normal 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>
|
||||
|
19
tests/wpt/mozilla/tests/css/background_size_ref.html
Normal file
19
tests/wpt/mozilla/tests/css/background_size_ref.html
Normal 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>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue