blob: baa6db057dd8ec4cd0cdb365b9e878215854df2b [file] [log] [blame]
<!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-radius: 80px;
background-color: blue;
}
#right-rounded-rect-outline {
position: absolute;
top: 20px;
right: 0px;
}
.right-rounded-rect-float-line {
float: right;
clear: right;
height: 20px;
}
</style>
<body>
<div class="container" style="text-align: right">
X&nbsp;<br/>
<div id="right-rounded-rect-outline" class="rounded-rect"></div>
<!-- generated right-rounded-rect-float-line divs will be inserted here -->
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;
</div>
<script src="../resources/rounded-rectangle.js"></script>
<script src="../resources/subpixel-utils.js"></script>
<script>
genRightRoundedRectFloatShapeOutsideRefTest({
roundedRect: {x: 0, y: 20, width: 320, height: 160, rx: 80, ry: 80},
containerWidth: 500,
containerHeight: 200,
lineHeight: 20,
floatElementClassSuffix: "rounded-rect-float-line",
insertElementIdSuffix: "rounded-rect-outline",
});
</script>
<p>Requires Ahem font. There is a 0px size inset applied on the right float with 200px radius.<br>
The black squares should trace the left side of the rounded rectangle's blue outline.</p>
<p>Bug <a href="http://webkit.org/b/129726">129726</a>: [CSS Shapes] inset does not properly clamp large corner radii</p>
</body>
</html>