55 lines
1.0 KiB
HTML
55 lines
1.0 KiB
HTML
<html>
|
|
<head>
|
|
<style>
|
|
.container {
|
|
width: 90px;
|
|
height: 90px;
|
|
color: green;
|
|
background-color: green;
|
|
margin: 10px;
|
|
position: relative;
|
|
}
|
|
|
|
#shape-margin-border-box {
|
|
position: absolute;
|
|
top: 30px;
|
|
left: 60px;
|
|
width: 25px;
|
|
height: 20px;
|
|
border: solid 5px blue;
|
|
border-right-width: 0px;
|
|
}
|
|
|
|
#shape-margin-margin-box {
|
|
position: absolute;
|
|
left: 60px;
|
|
width: 25px;
|
|
height: 20px;
|
|
border: solid 5px blue;
|
|
border-right-width: 0px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Verify that shape-margin has the expected effect on the four possible shape-outside box values for right floats.</p>
|
|
|
|
<p>shape-outside: content-box</p>
|
|
<div class='container'></div>
|
|
|
|
<p>shape-outside: padding-box</p>
|
|
<div class='container'></div>
|
|
|
|
<p>shape-outside: border-box</p>
|
|
<div class='container'>
|
|
<div id="shape-margin-border-box"></div>
|
|
</div>
|
|
|
|
<p>shape-outside: margin-box</p>
|
|
<div class='container'>
|
|
<div id="shape-margin-margin-box"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|