| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- Test CSS clip and shadow with composited layers. Left and right sides | 3 <!-- Test CSS clip and shadow with composited layers. Left and right sides |
| 4 should have the same shape. In old code where this caused a bug, | 4 should have the same shape. In old code where this caused a bug, |
| 5 crbug.com/246728, shadows cause a slightly different code path than | 5 crbug.com/246728, shadows cause a slightly different code path than |
| 6 clip.html without shadow. In this test, the clip is still larger than the | 6 clip.html without shadow. In this test, the clip is still larger than the |
| 7 shadow's extent; The composited layer should not clamp to the shadow's | 7 shadow's extent; The composited layer should not clamp to the shadow's |
| 8 extent (1 pixel), it should include the full extent of the clip as well (5 | 8 extent (1 pixel), it should include the full extent of the clip as well (5 |
| 9 pixels). --> | 9 pixels). --> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 .inner { | 26 .inner { |
| 27 position: relative; | 27 position: relative; |
| 28 width: 120px; | 28 width: 120px; |
| 29 height: 120px; | 29 height: 120px; |
| 30 top: -10px; | 30 top: -10px; |
| 31 left: -10px; | 31 left: -10px; |
| 32 background-color: rgba(0, 0, 0, 0.2); | 32 background-color: rgba(0, 0, 0, 0.2); |
| 33 } | 33 } |
| 34 | 34 |
| 35 .composited { | 35 .composited { |
| 36 -webkit-transform: translateZ(1px); | 36 transform: translateZ(1px); |
| 37 } | 37 } |
| 38 | 38 |
| 39 p { | 39 p { |
| 40 margin-top: 140px; | 40 margin-top: 140px; |
| 41 } | 41 } |
| 42 </style> | 42 </style> |
| 43 <script type="text/javascript" charset="utf-8"> | 43 <script type="text/javascript" charset="utf-8"> |
| 44 if (window.testRunner) { | 44 if (window.testRunner) { |
| 45 testRunner.dumpAsText(); | 45 testRunner.dumpAsText(); |
| 46 testRunner.waitUntilDone(); | 46 testRunner.waitUntilDone(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 65 <div class="box" style="left: 220px;"> | 65 <div class="box" style="left: 220px;"> |
| 66 <div class="composited inner"> | 66 <div class="composited inner"> |
| 67 </div> | 67 </div> |
| 68 </div> | 68 </div> |
| 69 | 69 |
| 70 <pre id="layers"> | 70 <pre id="layers"> |
| 71 <!-- In DRT, layer tree goes here. --> | 71 <!-- In DRT, layer tree goes here. --> |
| 72 </pre> | 72 </pre> |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| OLD | NEW |