user-drag-with-decorations.html 484 B

1234567
  1. This tests that we don't include overflow decorations from our ancestor nodes in the drag image for -webkit-user-drag: element. To perform this test drag the green square below. The drag image should not contain any parts of the scrollbar graphics visible on the page.
  2. <div style="height:100px; width:100px;overflow:scroll;">
  3. <div style="-webkit-user-drag:element;position:absolute; background: rgba(0,128,0,0.5); height:100px; width:100px;">
  4. Drag me!
  5. </div>
  6. </div>