diff --git a/layout/reftests/reftest-sanity/reftest.list b/layout/reftests/reftest-sanity/reftest.list index 4b1e7af64eb7..9f0701853f30 100644 --- a/layout/reftests/reftest-sanity/reftest.list +++ b/layout/reftests/reftest-sanity/reftest.list @@ -89,3 +89,6 @@ needs-focus == data:text/plain, about:blank # Sanity check of viewport+displayport overrides fails-if(!browserIsRemote) == test-displayport.html test-displayport-ref.html # bug 593168 skip-if(!browserIsRemote) != test-displayport-2.html test-displayport-ref.html # bug 593168 + +# IPC Position-fixed frames/layers test +== test-pos-fixed.html test-pos-fixed-ref.html diff --git a/layout/reftests/reftest-sanity/test-pos-fixed-ref.html b/layout/reftests/reftest-sanity/test-pos-fixed-ref.html new file mode 100644 index 000000000000..3f566d4c6b84 --- /dev/null +++ b/layout/reftests/reftest-sanity/test-pos-fixed-ref.html @@ -0,0 +1,7 @@ + + +
+ + diff --git a/layout/reftests/reftest-sanity/test-pos-fixed.html b/layout/reftests/reftest-sanity/test-pos-fixed.html new file mode 100644 index 000000000000..28d9022a9942 --- /dev/null +++ b/layout/reftests/reftest-sanity/test-pos-fixed.html @@ -0,0 +1,8 @@ + + + +
 
+ + diff --git a/layout/tools/reftest/reftest-content.js b/layout/tools/reftest/reftest-content.js index ddd735c1425f..7e05016ccb79 100644 --- a/layout/tools/reftest/reftest-content.js +++ b/layout/tools/reftest/reftest-content.js @@ -251,9 +251,11 @@ function setupDisplayport(contentRootElement) { // XXX support displayPortX/Y when needed var dpw = attrOrDefault("reftest-displayport-w", 0); var dph = attrOrDefault("reftest-displayport-h", 0); + var dpx = attrOrDefault("reftest-displayport-x", 0); + var dpy = attrOrDefault("reftest-displayport-y", 0); if (dpw !== 0 || dph !== 0) { LogInfo("Setting displayport to "); - windowUtils().setDisplayPortForElement(0, 0, dpw, dph, content.document.documentElement); + windowUtils().setDisplayPortForElement(dpx, dpy, dpw, dph, content.document.documentElement); } // XXX support resolution when needed