servo/tests/wpt/css-tests/css-shapes-1_dev/html/shape-outside-content-box-border-radius-002.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

55 lines
No EOL
1.7 KiB
HTML

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ --><html><head><meta charset="utf-8">
<title>CSS Shape Test: float right, content-box, border-radius</title>
<link href="mailto:tlin@mozilla.com" rel="author" title="Ting-Yu Lin">
<link href="http://www.mozilla.org/" rel="author" title="Mozilla">
<link href="https://drafts.csswg.org/css-shapes-1/#shapes-from-box-values" rel="help">
<link href="reference/shape-outside-content-box-border-radius-002-ref.htm" rel="match">
<meta content="" name="flags">
<meta content="Test the boxes are wrapping around the right float shape defined by the content-box and border-radius value." name="assert">
<style>
.container {
direction: rtl;
width: 200px;
line-height: 0;
}
.shape {
float: right;
shape-outside: content-box;
border-radius: 50%;
box-sizing: content-box;
height: 120px;
width: 120px;
padding: 10px;
border: 5px solid lightgreen;
margin: 5px;
background-color: orange;
}
.box {
display: inline-block;
width: 60px;
background-color: blue;
}
.longbox {
display: inline-block;
width: 200px;
height: 20px;
background-color: blue;
}
</style>
</head><body class="container">
<div class="shape"></div>
<div class="longbox"></div> <!-- Saturate the margin and border space -->
<div style="height: 24px;" class="box"></div> <!-- Box at corner -->
<div style="height: 36px;" class="box"></div>
<div style="height: 36px;" class="box"></div>
<div style="height: 24px;" class="box"></div> <!-- Box at corner -->
<div class="longbox"></div> <!-- Saturate the margin and border space -->
</body></html>