| <!DOCTYPE html> |
| <title>shape-outside-floats-rounded-rectangle-004-reference.html</title> |
| <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com"> |
| <meta name="flags" content="ahem dom"> |
| <style> |
| .container { |
| position: relative; |
| font: 10px/1 Ahem, sans-serif; |
| width: 80px; |
| height: 40px; |
| border: 1px solid black; |
| margin: 5px; |
| } |
| .rounded-rect { |
| position: absolute; |
| top: 0px; |
| left: 0px; |
| width: 40px; |
| height: 40px; |
| border: 1px solid blue; |
| border-radius: 50%; |
| } |
| .left-rounded-rect-float-line { |
| float: left; |
| clear: left; |
| height: 10px; |
| } |
| </style> |
| <body> |
| <div class="container"> |
| <div id="left-fixed-units" class="rounded-rect"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| <div class="container"> |
| <div id="left-relative-units" class="rounded-rect"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| <div class="container"> |
| <div id="left-different-units" class="rounded-rect"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| <div class="container"> |
| <div id="left-edge-case" class="rounded-rect"></div> |
| X<br/> |
| X<br/> |
| X<br/> |
| X |
| </div> |
| <script src="resources/rounded-rectangle.js"></script> |
| <script src="resources/subpixel-utils.js"></script> |
| <script> |
| // Note that the border must be added into the width to account for its |
| // affect on float positioning. |
| genLeftRoundedRectFloatShapeOutsideRefTest({ |
| roundedRect: {x: 0, y: 0, width: 41, height: 40, rx: 20, ry: 20}, |
| containerWidth: 80, |
| containerHeight: 40, |
| lineHeight: 10, |
| floatElementClassSuffix: "rounded-rect-float-line", |
| insertElementIdSuffix: "fixed-units" |
| }); |
| genLeftRoundedRectFloatShapeOutsideRefTest({ |
| roundedRect: {x: 0, y: 0, width: 41, height: 40, rx: 20, ry: 20}, |
| containerWidth: 80, |
| containerHeight: 40, |
| lineHeight: 10, |
| floatElementClassSuffix: "rounded-rect-float-line", |
| insertElementIdSuffix: "relative-units" |
| }); |
| genLeftRoundedRectFloatShapeOutsideRefTest({ |
| roundedRect: {x: 0, y: 0, width: 41, height: 40, rx: 20, ry: 20}, |
| containerWidth: 80, |
| containerHeight: 40, |
| lineHeight: 10, |
| floatElementClassSuffix: "rounded-rect-float-line", |
| insertElementIdSuffix: "different-units" |
| }); |
| genLeftRoundedRectFloatShapeOutsideRefTest({ |
| roundedRect: {x: 0, y: 0, width: 41, height: 40, rx: 20, ry: 20}, |
| containerWidth: 80, |
| containerHeight: 40, |
| lineHeight: 10, |
| floatElementClassSuffix: "rounded-rect-float-line", |
| insertElementIdSuffix: "edge-case" |
| }); |
| </script> |
| </body> |