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 -webkit-transform: translateZ(0); | 11 transform: translateZ(0); |
12 } | 12 } |
13 .inner { | 13 .inner { |
14 background: #808080; | 14 background: #808080; |
15 width: 100%; | 15 width: 100%; |
16 height: 100%; | 16 height: 100%; |
17 color: #FFFFFF; | 17 color: #FFFFFF; |
18 -webkit-transform: rotate(45deg) translateZ(0); | 18 transform: rotate(45deg) translateZ(0); |
19 } | 19 } |
20 </style> | 20 </style> |
21 </head> | 21 </head> |
22 <body> | 22 <body> |
23 The white text and grey backgrounds should all clip to the border-radius. | 23 The white text and grey backgrounds should all clip to the border-radius. |
24 <br> | 24 <br> |
25 | 25 |
26 <!-- static container --> | 26 <!-- static container --> |
27 <div class="outer" style="position: static;"> | 27 <div class="outer" style="position: static;"> |
28 <div class="inner" style="position: static;"> | 28 <div class="inner" style="position: static;"> |
(...skipping 18 matching lines...) Expand all Loading... |
47 <div class="inner" style="position: relative;"> | 47 <div class="inner" style="position: relative;"> |
48 relative > relative | 48 relative > relative |
49 </div> | 49 </div> |
50 </div> | 50 </div> |
51 <br> | 51 <br> |
52 <div class="outer" style="position: relative;"> | 52 <div class="outer" style="position: relative;"> |
53 <div class="inner" style="position: absolute;"> | 53 <div class="inner" style="position: absolute;"> |
54 relative > absolute | 54 relative > absolute |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
OLD | NEW |