| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| .clipper { |
| position: absolute; |
| top: 150px; |
| left: 150px; |
| width: 100px; |
| height: 150px; |
| background: lime; |
| } |
| |
| .clipper > div { |
| position: absolute; |
| width: 50px; |
| height: 200px; |
| background-color: blue; |
| } |
| |
| .clipper .above { |
| top: -100px; |
| left: 0px; |
| height: 150px; |
| } |
| |
| .clipper .below { |
| top: 50px; |
| left: 50px; |
| } |
| </style> |
| </head> |
| <body> |
| <div class="clipper"> |
| <div class="below"></div> |
| <div class="above"></div> |
| </div> |
| <svg height="0" width="0"> |
| <clipPath id="clipper" clipPathUnits="objectBoundingBox"> |
| <!--Two rects triggers the buffer-based clipping in RenderSVGResourceClipper::applyClippingToContext() --> |
| <rect x="0.25" y="-0.25" width="0.25" height="1"/> |
| <rect x="0.25" y="0.25" width="0.5" height="1.5"/> |
| </clipPath> |
| </svg> |
| </body> |
| </html> |