Bug 550426 - Add a few reftests for background-position-x/-y. r=dbaron

MozReview-Commit-ID: 7SoQqnS46A9

--HG--
rename : layout/reftests/backgrounds/background-position-1a.html => layout/reftests/backgrounds/background-position-1d.html
rename : layout/reftests/backgrounds/background-position-1b.html => layout/reftests/backgrounds/background-position-1e.html
rename : layout/reftests/backgrounds/background-position-1c.html => layout/reftests/backgrounds/background-position-1f.html
rename : layout/reftests/backgrounds/background-position-2a.html => layout/reftests/backgrounds/background-position-2c.html
rename : layout/reftests/backgrounds/background-position-2b.html => layout/reftests/backgrounds/background-position-2d.html
rename : layout/reftests/backgrounds/background-position-3a.html => layout/reftests/backgrounds/background-position-3c.html
rename : layout/reftests/backgrounds/background-position-3b.html => layout/reftests/backgrounds/background-position-3d.html
rename : layout/reftests/backgrounds/background-position-4a.html => layout/reftests/backgrounds/background-position-4d.html
rename : layout/reftests/backgrounds/background-position-4b.html => layout/reftests/backgrounds/background-position-4e.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6a.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6b.html
extra : rebase_source : a0b1bad96600e479369eec0ddcf20b735c136725
This commit is contained in:
Markus Stange 2016-04-20 23:56:58 -04:00
Родитель be2322f1ad
Коммит ec33572f28
13 изменённых файлов: 360 добавлений и 2 удалений

Просмотреть файл

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: right 25% bottom 75%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: right 25%;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner2
{
width: 128px;
height: 128px;
background-position-x: right 25%;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner3
{
width: 128px;
height: 128px;
background-position-x: right 24px;
background-position-y: bottom 72px;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner4
{
width: 128px;
height: 128px;
background-position-x: right 24px;
background-position-y: bottom 72px;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
<div id="outer"><div id="inner2"></div></div>
<div id="outer"><div id="inner3"></div></div>
<div id="outer"><div id="inner4"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: left 75% top 25%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: left 75%;
background-position-y: top 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner2
{
width: 128px;
height: 128px;
background-position-x: left 75%;
background-position-y: top 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner3
{
width: 128px;
height: 128px;
background-position-x: left 72px;
background-position-y: top 24px;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner4
{
width: 128px;
height: 128px;
background-position-x: left 72px;
background-position-y: top 24px;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
<div id="outer"><div id="inner2"></div></div>
<div id="outer"><div id="inner3"></div></div>
<div id="outer"><div id="inner4"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: left 75% bottom 75%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: left 75%;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner2
{
width: 128px;
height: 128px;
background-position-x: right 25%;
background-position-y: top 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner3
{
width: 128px;
height: 128px;
background-position-x: left 75%;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
#inner4
{
width: 128px;
height: 128px;
background-position-x: right 25%;
background-position-y: top 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
<div id="outer"><div id="inner2"></div></div>
<div id="outer"><div id="inner3"></div></div>
<div id="outer"><div id="inner4"></div></div>
</body>
</html>

Просмотреть файл

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: center bottom 75%</title>
<title>background-position: left 25% bottom 75%</title>
<style type="text/css">
#outer
{

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: left 25% bottom 75%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: left 25%;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: 25% 25%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: 25%;
background-position-y: 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: center bottom 75%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: center;
background-position-y: bottom 75%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position: center 25%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-x: center;
background-position-y: 25%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position-y: bottom 50%</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-y: bottom 50%;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position-y: center</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position-y: center;
background-image: url(aqua-32x32.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>background-position-y: top, bottom</title>
<style type="text/css">
#outer
{
border: 1px solid black;
width: 128px;
height: 128px;
}
#inner1
{
width: 128px;
height: 128px;
background-position: top; /* sets background-position-x to center */
background-position-y: top, bottom;
background-image: url(aqua-32x32.png), url(aqua-32x32.png);
background-repeat: no-repeat, no-repeat;
}
</style>
</head>
<body>
<div id="outer"><div id="inner1"></div></div>
</body>
</html>

Просмотреть файл

@ -35,15 +35,25 @@ skip-if(B2G||Mulet) == continuous-inline-4b.html continuous-inline-4-ref.html #
skip-if(B2G||Mulet) == background-position-1a.html background-position-1-ref.html # Initial mulet triage: parity with B2G/B2G Desktop
== background-position-1b.html background-position-1-ref.html
== background-position-1c.html background-position-1-ref.html
skip-if(B2G||Mulet) == background-position-1d.html background-position-1-ref.html # Initial mulet triage: parity with B2G/B2G Desktop
== background-position-1e.html background-position-1-ref.html
== background-position-1f.html background-position-1-ref.html
== background-position-2a.html background-position-2-ref.html
== background-position-2b.html background-position-2-ref.html
== background-position-2c.html background-position-2-ref.html
== background-position-2d.html background-position-2-ref.html
== background-position-3a.html background-position-3-ref.html
== background-position-3b.html background-position-3-ref.html
== background-position-3c.html background-position-3-ref.html
== background-position-3d.html background-position-3-ref.html
== background-position-4a.html background-position-4-ref.html
== background-position-4b.html background-position-4-ref.html
== background-position-4c.html background-position-4-ref.html
== background-position-4d.html background-position-4-ref.html
== background-position-4e.html background-position-4-ref.html
== background-position-5.html background-position-5-ref.html
== background-position-6.html background-position-6-ref.html
== background-position-6a.html background-position-6-ref.html
== background-position-6b.html background-position-6-ref.html
== background-position-7.html background-position-7-ref.html
== background-position-8.html background-position-8-ref.html