| <!doctype html> |
| <html class="reftest"> |
| <meta charset="utf-8"> |
| <title>overflow-clip-margin: border-box is ignored on a scroller</title> |
| <link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin"> |
| <link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com"> |
| <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> |
| <style> |
| .clip { |
| width: 80px; |
| height: 80px; |
| padding: 10px; |
| border: 10px solid transparent; |
| margin: -10px 0 0 -10px; |
| overflow: hidden; |
| overflow-clip-margin: border-box; |
| background: red; |
| background-clip: content-box; |
| } |
| .big { |
| width: 100px; |
| height: 100px; |
| border: 50px solid red; |
| position: relative; |
| top: -60px; |
| left: -60px; |
| z-index: 1; |
| background: green; |
| } |
| </style> |
| <p>Test passes if there is a filled green square.</p> |
| <div class=clip> |
| <div class=big></div> |
| </div> |