Bug 653133 - reftest for huge background-attachment:fixed image [r=roc]

This commit is contained in:
Tatiana Meshkova 2011-05-24 13:16:32 +03:00
parent 960cd9f6a4
commit cf9d114701
5 changed files with 40 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

View File

@ -93,6 +93,7 @@ skip-if(!browserIsRemote) != test-displayport-2.html test-displayport-ref.html #
# IPC Position-fixed frames/layers test
# Fixed layers are temporarily disabled (bug 656167).
#== test-pos-fixed.html test-pos-fixed-ref.html
== test-bg-attachment-fixed.html test-bg-attachment-fixed-ref.html
# reftest syntax: require-or
require-or(unrecognizedCondition,skip) script scripttest-fail.html

View File

@ -0,0 +1,16 @@
<html reftest-viewport-w="800" reftest-viewport-h="1000"
reftest-displayport-w="800" reftest-displayport-h="1000">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body
{
background-image:url("bg.png");
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,22 @@
<html style="overflow:hidden"
reftest-viewport-w="800" reftest-viewport-h="1000"
reftest-displayport-w="800" reftest-displayport-h="1000">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script>
function run() {
window.scrollTo(0, 30);
}
</script>
<style type="text/css">
body
{
background-image:url("bg.png");
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
</head>
<body onload="run()" style="height: 10000px">
</body>
</html>

View File

@ -254,7 +254,7 @@ function setupDisplayport(contentRootElement) {
var dpx = attrOrDefault("reftest-displayport-x", 0);
var dpy = attrOrDefault("reftest-displayport-y", 0);
if (dpw !== 0 || dph !== 0) {
LogInfo("Setting displayport to <x=0, y=0, w="+ dpw +", h="+ dph +">");
LogInfo("Setting displayport to <x="+ dpx +", y="+ dpy +", w="+ dpw +", h="+ dph +">");
windowUtils().setDisplayPortForElement(dpx, dpy, dpw, dph, content.document.documentElement);
}