mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
56 lines
No EOL
2.1 KiB
HTML
56 lines
No EOL
2.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test: left float, inset + padding-box</title>
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck" />
|
|
<link href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values" rel="help" />
|
|
<link href="reference/shape-outside-inset-010-ref.xht" rel="match" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="The test verfies that text flows around a
|
|
left float with a shape-outside defined as
|
|
an inset rectangle + padding-box." name="assert" />
|
|
<style>
|
|
#container {
|
|
position: relative;
|
|
margin-left: 25px;
|
|
}
|
|
#test-container {
|
|
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;
|
|
shape-outside: padding-box inset(0px 50px 0px -50px);
|
|
}
|
|
#static-shape {
|
|
position: absolute;
|
|
top: 50px;
|
|
left: 0px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: green;
|
|
}
|
|
</style></head>
|
|
|
|
<body>
|
|
<p>The test passes if there is a green square and no red.</p>
|
|
<div id="container">
|
|
<div id="test-container">
|
|
<div id="test-shape"></div>
|
|
XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX
|
|
</div>
|
|
<div id="static-shape"></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |