blob: f17bc8309899de09e7c1c86cb436e67d404cb5c4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: left float, inset + border-box</title>
<link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset">
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values">
<link rel="match" href="reference/shape-outside-inset-010-ref.html"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The test verfies that text flows around a
left float with a shape-outside defined as
an inset rectangle + border-box.">
</head>
<style>
#container {
position: absolute;
left: 25px;
width: 200px;
height: 200px;
font-family: Ahem;
font-size: 25px;
background-color: red;
color: green;
}
#test-shape {
float: left;
width: 50px;
height: 50px;
border: 25px solid red;
margin: 25px;
padding: 25px;
-webkit-shape-outside: border-box inset(25px 75px 25px -25px);
}
#static-shape {
position: absolute;
top: 100px;
left: 25px;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<body>
<p>The test passes if there is a green square and no red.</p>
<div id="container">
<div id="test-shape"></div>
XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX
</div>
<div id="static-shape"></div>
</body>
</html>