| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <style> | 2 <style> |
| 3 .outer { | 3 .outer { |
| 4 border: 10px solid black; | 4 border: 10px solid black; |
| 5 border-radius: 100px; | 5 border-radius: 100px; |
| 6 overflow: hidden; | 6 overflow: hidden; |
| 7 width: 200px; | 7 width: 200px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 margin: 10px; | 9 margin: 10px; |
| 10 display: inline-block | 10 display: inline-block |
| 11 } | 11 } |
| 12 .inner { | 12 .inner { |
| 13 background: #808080; | 13 background: #808080; |
| 14 width: 100%; | 14 width: 100%; |
| 15 height: 100%; | 15 height: 100%; |
| 16 color: #FFFFFF; | 16 color: #FFFFFF; |
| 17 -webkit-transform: rotate(45deg) translateZ(0); | 17 transform: rotate(45deg) translateZ(0); |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 </head> | 20 </head> |
| 21 <body> | 21 <body> |
| 22 The white text and grey backgrounds should all clip to the border-radius. | 22 The white text and grey backgrounds should all clip to the border-radius. |
| 23 <br> | 23 <br> |
| 24 | 24 |
| 25 <!-- static container --> | 25 <!-- static container --> |
| 26 <div class="outer" style="position: static;"> | 26 <div class="outer" style="position: static;"> |
| 27 <div class="inner" style="position: static;"> | 27 <div class="inner" style="position: static;"> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 <div class="inner" style="position: relative;"> | 46 <div class="inner" style="position: relative;"> |
| 47 relative > relative | 47 relative > relative |
| 48 </div> | 48 </div> |
| 49 </div> | 49 </div> |
| 50 <br> | 50 <br> |
| 51 <div class="outer" style="position: relative;"> | 51 <div class="outer" style="position: relative;"> |
| 52 <div class="inner" style="position: absolute;"> | 52 <div class="inner" style="position: absolute;"> |
| 53 relative > absolute | 53 relative > absolute |
| 54 </div> | 54 </div> |
| 55 </div> | 55 </div> |
| OLD | NEW |