OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.internals) |
| 6 window.internals.settings.setCSSExclusionsEnabled(true); |
| 7 </script> |
| 8 |
| 9 <style> |
| 10 #container { |
| 11 font: 20px/1 Ahem, sans-serif; |
| 12 width: 200px; |
| 13 height: 300px; |
| 14 text-align: right; |
| 15 } |
| 16 |
| 17 #float-right { |
| 18 float: right; |
| 19 position: relative; |
| 20 overflow: visible; |
| 21 -webkit-shape-outside: polygon(0px 0px, 100px 0px, 100px 60px, 0px 60px); |
| 22 -webkit-shape-margin: 20px; |
| 23 } |
| 24 |
| 25 #svg-shape { |
| 26 position: absolute; |
| 27 display:block; |
| 28 top: -21px; |
| 29 left: -21px; |
| 30 width: 142px; |
| 31 height: 102px; |
| 32 } |
| 33 </style> |
| 34 |
| 35 <body> |
| 36 <p>The right edges of the five black squares should follow the left side of the
outer rounded rectangle boundary and each square should appear on a subsequent l
ine.</p> |
| 37 <div id="container"> |
| 38 <div id="float-right"> |
| 39 <svg id="svg-shape" xmlns="http://www.w3.org/2000/"> |
| 40 <rect x="20" y="20" width="100" height="60" fill="none" stroke="gree
n"></rect> |
| 41 <rect x="1" y="1" width="140" height="100" rx="20" ry="20" fill="non
e" stroke="green"></rect> |
| 42 </svg> |
| 43 </div> |
| 44 X<br/>X<br/>X<br/>X<br/>X |
| 45 </div> |
| 46 </body> |
| 47 </html> |
| 48 |
OLD | NEW |