Bug 1408792 - Add a reftest. r=mstange

MozReview-Commit-ID: 7vD55lQMGQn

--HG--
extra : rebase_source : bcf2db008381deedab971b938fd1a19ca1405239
This commit is contained in:
Kartikaya Gupta 2018-01-23 09:39:09 -05:00
Родитель 8f5033ab9d
Коммит b17499678e
3 изменённых файлов: 97 добавлений и 0 удалений

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

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html style="margin: 0; padding: 0; z-index: 0">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body style="margin: 0; padding: 0; z-index: 0" onload="scrollTo(0,400)">
<div style="height: 100vh">
<div style="width: 100%;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 2">
<div style="position: absolute;
width: 100%;
height: 100vh;
left: 0;
top: 0;
z-index: 3">
<div style="position: relative;
width: 100%;
height: 100%;
background-image: linear-gradient(lime, blue);">
</div></div></div></div>
<div style="height: 100vh;
position: relative;
background: black;">
<div style="position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
clip: rect(0, auto, auto, 0);">
<div style="width: 100%;
height: 100%;
top: 0;
left: 0;
position: fixed;
transform: translateZ(0);
z-index: 3">
<div style="position: relative;
width: 100%;
height: 100%;
background-image: linear-gradient(yellow, red);">
</div></div></div></div>
</body></html>

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

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html style="margin: 0; padding: 0; z-index: 0" reftest-async-scroll reftest-async-scroll-y="400">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body style="margin: 0; padding: 0; z-index: 0">
<div style="height: 100vh">
<div style="width: 100%;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 2">
<div style="position: absolute;
width: 100%;
height: 100vh;
left: 0;
top: 0;
z-index: 3">
<div style="position: relative;
width: 100%;
height: 100%;
background-image: linear-gradient(lime, blue);">
</div></div></div></div>
<div style="height: 100vh;
position: relative;
background: black;">
<div style="position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
clip: rect(0, auto, auto, 0);">
<div style="width: 100%;
height: 100%;
top: 0;
left: 0;
position: fixed;
transform: translateZ(0);
z-index: 3">
<div style="position: relative;
width: 100%;
height: 100%;
background-image: linear-gradient(yellow, red);">
</div></div></div></div>
</body></html>

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

@ -61,6 +61,7 @@ fuzzy-if(Android,6,8) skip-if(!asyncPan) == fixed-pos-scrolled-clip-4.html fixed
skip-if(!asyncPan) == fixed-pos-scrolled-clip-5.html fixed-pos-scrolled-clip-5-ref.html
fuzzy-if(Android,6,4) skip-if(!asyncPan) == position-sticky-scrolled-clip-1.html position-sticky-scrolled-clip-1-ref.html
fuzzy-if(Android,6,4) skip == position-sticky-scrolled-clip-2.html position-sticky-scrolled-clip-2-ref.html # bug ?????? - incorrectly applying clip to sticky contents
skip-if(!asyncPan) == curtain-effect-1.html curtain-effect-1-ref.html
# for the following tests, we want to disable the low-precision buffer
# as it will expand the displayport beyond what the test specifies in