layout/reftests/transform-3d/willchange-containing-block.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <body>
michael@0 4 <style>
michael@0 5 body {
michael@0 6 padding: 100px;
michael@0 7 width: 5000px;
michael@0 8 height: 5000px;
michael@0 9 overflow: scroll;
michael@0 10 }
michael@0 11 div {
michael@0 12 }
michael@0 13 #parent {
michael@0 14 background:red;
michael@0 15 width: 64px;
michael@0 16 height: 64px;
michael@0 17 }
michael@0 18 #child {
michael@0 19 background:green;
michael@0 20 position:fixed;
michael@0 21 width: 32px;
michael@0 22 height: 32px;
michael@0 23 }
michael@0 24 </style>
michael@0 25 <div id="parent">
michael@0 26 <div id="child">
michael@0 27
michael@0 28 </div>
michael@0 29 </div>
michael@0 30 <script type="application/javascript">
michael@0 31
michael@0 32 if (document.location.search == '?willchange') {
michael@0 33 document.getElementById("parent").style.willChange = "transform";
michael@0 34 } else if (document.location.search == '?ref') {
michael@0 35 document.getElementById("parent").style.transform = "translateZ(1px)";
michael@0 36 } else if (document.location.search == '?noblock') {
michael@0 37 }
michael@0 38
michael@0 39 document.documentElement.scrollTop = 10;
michael@0 40 document.documentElement.scrollLeft = 10;
michael@0 41 </script>
michael@0 42 </body>
michael@0 43 </html>

mercurial