blob: 02397c5aaaa06c1404ce3c5daf7b420f99930e87 [file] [log] [blame]
enne@google.coma2f52df2012-07-12 23:38:441<!DOCTYPE html>
2<html>
3<head>
4<style>
5 body {
6 direction: rtl;
7 margin: 0px;
8 }
9
10 #layer {
11 position: absolute;
12 top: 50px;
13 right: 50px;
14 width: 100px;
15 height: 100px;
16 background-color: red;
17 }
18
19 #root {
20 width: 1000px;
21 height: 1000px;
22 -webkit-transform:translateZ(0);
23 }
24</style>
25<script>
26 function doTest() {
27 if (window.testRunner) {
28 testRunner.display();
29 testRunner.dumpAsText(true);
30 }
31 // This test passes if this element is repainted correctly, even
32 // on a page that is composited and has horizontal overflow.
33 var elem = document.getElementById("layer");
34 elem.style.backgroundColor = "green";
35 }
36 window.addEventListener('load', doTest, false);
37</script>
38<body>
39 <div id="layer" class=""></div>
40 <div id="root"></div>
41</body>
42</html>