| OLD | NEW |
| 1 <!DOCTYPE> | 1 <!DOCTYPE> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Layout width change</title> | 4 <title>Layout width change</title> |
| 5 | 5 |
| 6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
| 7 .container { | 7 .container { |
| 8 position: absolute; | 8 position: absolute; |
| 9 width: 400px; | 9 width: 400px; |
| 10 height: 1500px; | 10 height: 1500px; |
| 11 } | 11 } |
| 12 | 12 |
| 13 .panel { | 13 .panel { |
| 14 position: absolute; | 14 position: absolute; |
| 15 top: 0px; | 15 top: 0px; |
| 16 left: 0px; | 16 left: 0px; |
| 17 width: 1000px; | 17 width: 1000px; |
| 18 height: 200px; | 18 height: 200px; |
| 19 background-color: #bbb; | 19 background-color: #bbb; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .composited { | 22 .composited { |
| 23 -webkit-transform: translateZ(0); | 23 transform: translateZ(0); |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 <script type="text/javascript" charset="utf-8"> | 26 <script type="text/javascript" charset="utf-8"> |
| 27 if (window.testRunner) { | 27 if (window.testRunner) { |
| 28 testRunner.waitUntilDone(); | 28 testRunner.waitUntilDone(); |
| 29 testRunner.dumpAsTextWithPixelResults(); | 29 testRunner.dumpAsTextWithPixelResults(); |
| 30 } | 30 } |
| 31 function doTest() | 31 function doTest() |
| 32 { | 32 { |
| 33 var container = document.getElementById("container"); | 33 var container = document.getElementById("container"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 52 <body> | 52 <body> |
| 53 | 53 |
| 54 <p>There should be no white gap at the right hand side of the box.</p> | 54 <p>There should be no white gap at the right hand side of the box.</p> |
| 55 <div id="container" class="container"> | 55 <div id="container" class="container"> |
| 56 <div id="panel" class="panel"> | 56 <div id="panel" class="panel"> |
| 57 </div> | 57 </div> |
| 58 </div> | 58 </div> |
| 59 | 59 |
| 60 </body> | 60 </body> |
| 61 </html> | 61 </html> |
| OLD | NEW |