Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-054.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: left float wider than the containing block, with ellipse</title>
<link rel="author" title="Helmut Januschka" href="mailto:helmut@januschka.com">
<link rel="match" href="reference/shape-outside-ellipse-054-ref.html">
<meta name="flags" content="ahem" />
<meta name="assert" content="The test verifies that lines next to a
left float that is wider than the
containing block wrap around the shape and
do not extend past the available
inline-size. The rendering must be
identical to the reference, which uses a
float that fits within the containing
block with the same shape.">
</head>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
body {
margin: 0;
}
.container {
font: 20px/1 Ahem, sans-serif;
width: 300px;
height: 200px;
overflow: hidden;
color: green;
}
.test-shape {
float: left;
width: 400px;
height: 400px;
shape-outside: ellipse(40px 60px at 100px 100px);
}
</style>
<body>
<p>The test passes if the green pattern below is identical to the reference.</p>
<div class="container" dir="ltr">
<div class="test-shape"></div>
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
</div>
</body>
</html>