mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 653133 - reftest for huge background-attachment:fixed image [r=roc]
This commit is contained in:
parent
960cd9f6a4
commit
cf9d114701
BIN
layout/reftests/reftest-sanity/bg.png
Normal file
BIN
layout/reftests/reftest-sanity/bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 110 B |
@ -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
|
||||
|
@ -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>
|
22
layout/reftests/reftest-sanity/test-bg-attachment-fixed.html
Normal file
22
layout/reftests/reftest-sanity/test-bg-attachment-fixed.html
Normal 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>
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user