| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .clip-path { | 5 .clip-path { |
| 6 -webkit-clip-path: url('#clipping'); | 6 -webkit-clip-path: url('#clipping'); |
| 7 overflow: scroll; | 7 overflow: scroll; |
| 8 } | 8 } |
| 9 | 9 |
| 10 .outer { | 10 .outer { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 .bottom { | 28 .bottom { |
| 29 position: relative; | 29 position: relative; |
| 30 top: 250px; | 30 top: 250px; |
| 31 } | 31 } |
| 32 </style> | 32 </style> |
| 33 | 33 |
| 34 <script> | 34 <script> |
| 35 if (window.internals) | 35 if (window.internals) |
| 36 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | 36 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 37 </script> | 37 </script> |
| 38 </head> | 38 </head> |
| 39 | 39 |
| 40 <body> | 40 <body> |
| 41 This tests that reference clip-path is applied with composited scrolling. If the
content and | 41 This tests that reference clip-path is applied with composited scrolling. If the
content and |
| 42 scrollbars are properly clipped, this test passes. | 42 scrollbars are properly clipped, this test passes. |
| 43 | 43 |
| 44 <svg width="0", height="0"> | 44 <svg width="0", height="0"> |
| 45 <defs> | 45 <defs> |
| 46 <clipPath id="clipping"> | 46 <clipPath id="clipping"> |
| 47 <polygon points="61 237,9 313,115 386,621 356,280 339,505 187,414 61,164 143
,84 42,2 189"></polygon> | 47 <polygon points="61 237,9 313,115 386,621 356,280 339,505 187,414 61,164 143
,84 42,2 189"></polygon> |
| 48 </clipPath> | 48 </clipPath> |
| 49 </defs> | 49 </defs> |
| 50 </svg> | 50 </svg> |
| 51 | 51 |
| 52 <div class="clip-path outer" id="outer"> | 52 <div class="clip-path outer" id="outer"> |
| 53 <div class="spacer"></div> | 53 <div class="spacer"></div> |
| 54 <div class="inner"> | 54 <div class="inner"> |
| 55 <div class="spacer bottom"></div> | 55 <div class="spacer bottom"></div> |
| 56 </div> | 56 </div> |
| 57 <div class="spacer"></div> | 57 <div class="spacer"></div> |
| 58 </div> | 58 </div> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |