| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| .container { |
| position: relative; |
| font: 20px/1 Ahem, sans-serif; |
| width: 500px; |
| height: 200px; |
| border: 1px solid black; |
| } |
| |
| .rounded-rect { |
| width: 320px; |
| height: 160px; |
| border-top-right-radius: 200px 40px; |
| border: 1px solid blue; |
| } |
| |
| #left-rounded-rect-outline { |
| position: absolute; |
| top: 20px; |
| } |
| |
| .left-rounded-rect-float-line { |
| float: left; |
| clear: left; |
| height: 20px; |
| } |
| </style> |
| <body> |
| <div class="container"> |
| X<br/> |
| <div id="left-rounded-rect-outline" class="rounded-rect"></div> |
| <!-- generated right-rounded-rect-float-line divs will be inserted here --> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| <script src="../resources/rounded-rectangle.js"></script> |
| <script src="../resources/subpixel-utils.js"></script> |
| <script> |
| genLeftRoundedRectFloatShapeOutsideRefTest({ |
| roundedRect: {x: 0, y: 20, width: 322, height: 160, rx: 200, ry: 40}, |
| containerWidth: 500, |
| containerHeight: 200, |
| lineHeight: 20, |
| floatElementClassSuffix: "rounded-rect-float-line", |
| insertElementIdSuffix: "rounded-rect-outline", |
| corner: "upper" |
| }); |
| </script> |
| |
| <p>Requires Ahem font. There is a 0px size inset applied on the right float with 60px/40px top right radius.<br> |
| The black squares should trace the right side of the rounded rectangle's blue outline. |
| The second line contains a non-break space in order to avoid rounding/painting problems in the test.</p> |
| <p>Bug <a href="http://webkit.org/b/125112">125112</a>: [CSS Shapes] Support inset for shape-outside</p> |
| |
| </body> |
| </html> |