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/path/shape-outside-path-000.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Test: left float, path, args in px units</title>
<link rel="author" title="Jason Leo" href="mailto:cgqaq@chromium.org">
<link rel="match" href="reference/shape-outside-path-000-ref.html">
<meta name="assert" content="The test verifies that text wraps around a
left float with a shape-outside defined as
a path forming a rectangle.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
body {
margin: 0;
}
#test-container {
font: 20px/1 Ahem;
width: 200px;
height: 200px;
color: green;
}
#test-shape {
float: left;
width: 200px;
height: 200px;
shape-outside: path('M 0 0 L 100 0 L 100 200 L 0 200 Z');
}
</style>
<p>The test passes if the green text lines up on the right.</p>
<div id="test-container">
<div id="test-shape"></div>
XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX
</div>