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