blob: 21d6082575e494bb7e253712a0ab7b8f05489df9 [file] [log] [blame]
jamesr@google.comb7cbb5e2011-11-19 03:02:31 +00001<!DOCTYPE html>
2<html>
3<head>
4<style>
5.fixed-no-z-index {
6 position: absolute;
7 left: 10px;
8 -webkit-transform: translateX(10px) rotate(20deg);
9}
10.fixed-with-z-index {
11 position: fixed;
12 z-index: 1;
13 left: 10px;
14 -webkit-transform: translateX(10px) rotate(20deg);
15}
jamesr@google.comb7cbb5e2011-11-19 03:02:31 +000016</style>
17<script>
18 function scale() {
fsamuel@chromium.orgdddd2d42012-01-05 18:16:46 +000019 if (window.internals) {
morrita@google.com61860a42012-01-25 19:04:10 +000020 window.internals.settings.setEnableCompositingForFixedPosition(true);
21 window.internals.settings.setPageScaleFactor(0.5, 0, 0);
commit-queue@webkit.orgbe992982011-12-08 10:12:22 +000022 }
rniwa@webkit.org18904132012-06-11 18:29:22 +000023 if (window.testRunner)
24 testRunner.dumpAsText(true);
jamesr@google.comb7cbb5e2011-11-19 03:02:31 +000025 }
26</script>
27</head>
28<body onload="scale();" style="width:2000px;height:2000px;">
29<div class="fixed-no-z-index">TEST</div><br>
30<div class="fixed-with-z-index">TEST</div>
31</body>
32</html>