| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Reference Case</title> |
| <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
| <!-- Note: This reference case should have almost identical markup to the |
| testcase; the only difference should be the removal of the 'clip-{x,y}' |
| classes and their 'overflow-{x,y}: clip' styles. --> |
| <style> |
| body { margin-left: 50px; } |
| body { margin-left: 50px; } |
| .outer { |
| width: 50px; |
| height: 50px; |
| border: 4px solid grey; |
| display: inline-block; |
| margin: 30px; |
| } |
| .shift-left { |
| transform: translatex(-10px); |
| } |
| .shift-right { |
| transform: translatex(10px); |
| } |
| .shift-up { |
| transform: translatey(-10px); |
| } |
| .shift-down { |
| transform: translatey(10px); |
| } |
| .child { |
| width: 100%; |
| height: 100%; |
| box-sizing: border-box; |
| border: 4px solid blue; |
| } |
| .wide { |
| width: 90px; |
| margin-left: -20px; |
| } |
| .tall { |
| height: 90px; |
| margin-top: -20px; |
| } |
| </style> |
| <body> |
| <div class="outer shift-left"> |
| <div class="child wide"></div> |
| </div> |
| <div class="outer"> |
| <div class="child wide"></div> |
| </div> |
| <div class="outer shift-right"> |
| <div class="child wide"></div> |
| </div> |
| <br> |
| |
| <div class="outer shift-up"> |
| <div class="child tall"></div> |
| </div> |
| <div class="outer"> |
| <div class="child tall"></div> |
| </div> |
| <div class="outer shift-down"> |
| <div class="child tall"></div> |
| </div> |
| </body> |