Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <title>Test for clipping of border-radius</title> |
michael@0 | 3 | <style> |
michael@0 | 4 | #contain { |
michael@0 | 5 | width: 200px; |
michael@0 | 6 | height: 100px; |
michael@0 | 7 | position: relative; |
michael@0 | 8 | } |
michael@0 | 9 | #contain > div { |
michael@0 | 10 | overflow: hidden; |
michael@0 | 11 | width: 200px; |
michael@0 | 12 | height: 100px; |
michael@0 | 13 | border-radius: 50px / 20px; |
michael@0 | 14 | } |
michael@0 | 15 | #contain > div > img { |
michael@0 | 16 | border-radius: 20px / 40px; |
michael@0 | 17 | width: 200px; |
michael@0 | 18 | height: 100px; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | #contain > div.spot { |
michael@0 | 22 | position: absolute; |
michael@0 | 23 | height: 1px; |
michael@0 | 24 | width: 1px; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | </style> |
michael@0 | 28 | <div id="contain"> |
michael@0 | 29 | <div><img src="../pixel-rounding/lime-25x25.png" alt=""></div> |
michael@0 | 30 | |
michael@0 | 31 | <!-- |
michael@0 | 32 | This is just like the test, except we'll add a bunch of spots in various |
michael@0 | 33 | places that should match the background of what they're on. |
michael@0 | 34 | --> |
michael@0 | 35 | |
michael@0 | 36 | <div class="spot" style="top: 1px; left: 15px; background: white"></div> |
michael@0 | 37 | <div class="spot" style="top: 14px; left: 2px; background: white"></div> |
michael@0 | 38 | <div class="spot" style="top: 18px; left: 0px; background: white"></div> |
michael@0 | 39 | <div class="spot" style="top: 82px; left: 198px; background: white"></div> |
michael@0 | 40 | <div class="spot" style="top: 97px; left: 180px; background: white"></div> |
michael@0 | 41 | <div class="spot" style="top: 2px; left: 180px; background: white"></div> |
michael@0 | 42 | <div class="spot" style="top: 17px; left: 198px; background: white"></div> |
michael@0 | 43 | <div class="spot" style="top: 97px; left: 19px; background: white"></div> |
michael@0 | 44 | <div class="spot" style="top: 82px; left: 1px; background: white"></div> |
michael@0 | 45 | |
michael@0 | 46 | <div class="spot" style="top: 10px; left: 8px; background: lime"></div> |
michael@0 | 47 | <div class="spot" style="top: 89px; left: 8px; background: lime"></div> |
michael@0 | 48 | <div class="spot" style="top: 10px; left: 191px; background: lime"></div> |
michael@0 | 49 | <div class="spot" style="top: 89px; left: 191px; background: lime"></div> |
michael@0 | 50 | |
michael@0 | 51 | </div> |