| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css" media="screen"> | 3 <style type="text/css" media="screen"> |
| 4 .box { | 4 .box { |
| 5 position: absolute; | 5 position: absolute; |
| 6 width: 100px; | 6 width: 100px; |
| 7 height: 100px; | 7 height: 100px; |
| 8 top: 20px; | 8 top: 20px; |
| 9 left: 20px; | 9 left: 20px; |
| 10 background-color: gray; | 10 background-color: gray; |
| 11 clip: rect(15px, 95px, 95px, 5px); | 11 clip: rect(15px, 95px, 95px, 5px); |
| 12 } | 12 } |
| 13 | 13 |
| 14 .inner { | 14 .inner { |
| 15 position: relative; | 15 position: relative; |
| 16 width: 120px; | 16 width: 120px; |
| 17 height: 120px; | 17 height: 120px; |
| 18 top: -10px; | 18 top: -10px; |
| 19 left: -10px; | 19 left: -10px; |
| 20 background-color: rgba(0, 0, 0, 0.2); | 20 background-color: rgba(0, 0, 0, 0.2); |
| 21 } | 21 } |
| 22 | 22 |
| 23 .composited { | 23 .composited { |
| 24 -webkit-transform: translateZ(1px); | 24 transform: translateZ(1px); |
| 25 } | 25 } |
| 26 | 26 |
| 27 p { | 27 p { |
| 28 margin-top: 140px; | 28 margin-top: 140px; |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 <script type="text/javascript" charset="utf-8"> | 31 <script type="text/javascript" charset="utf-8"> |
| 32 if (window.testRunner) { | 32 if (window.testRunner) { |
| 33 testRunner.dumpAsText(); | 33 testRunner.dumpAsText(); |
| 34 testRunner.waitUntilDone(); | 34 testRunner.waitUntilDone(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 <div class="box" style="left: 220px;"> | 52 <div class="box" style="left: 220px;"> |
| 53 <div class="composited inner"> | 53 <div class="composited inner"> |
| 54 </div> | 54 </div> |
| 55 </div> | 55 </div> |
| 56 | 56 |
| 57 <p>Test CSS clip with composited layers. Left and right sides should look the
same.</p> | 57 <p>Test CSS clip with composited layers. Left and right sides should look the
same.</p> |
| 58 <pre id="layers">In DRT, layer tree goes here.</pre> | 58 <pre id="layers">In DRT, layer tree goes here.</pre> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |