mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
64 lines
No EOL
2.1 KiB
HTML
64 lines
No EOL
2.1 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 left, content-box</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-001-ref.htm" rel="match">
|
|
<meta content="" name="flags">
|
|
<meta content="Test the boxes are wrapping around the left float shape defined by the content-box value." name="assert">
|
|
<style>
|
|
.container {
|
|
width: 175px;
|
|
line-height: 0;
|
|
}
|
|
|
|
.shape {
|
|
float: left;
|
|
shape-outside: content-box;
|
|
box-sizing: content-box;
|
|
height: 25px;
|
|
width: 25px;
|
|
padding: 25px;
|
|
border: 25px solid lightgreen;
|
|
margin: 25px;
|
|
background-color: orange;
|
|
}
|
|
|
|
.box {
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 25px;
|
|
background-color: blue;
|
|
}
|
|
|
|
.longbox {
|
|
display: inline-block;
|
|
width: 175px;
|
|
height: 25px;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
|
|
</head><body class="container">
|
|
<div class="shape"></div>
|
|
<div class="shape"></div>
|
|
<div class="longbox"></div> <!-- Saturate the margin space -->
|
|
<div class="longbox"></div> <!-- Saturate the border space -->
|
|
<div class="longbox"></div> <!-- Saturate the padding space -->
|
|
<div class="box"></div>
|
|
<div class="longbox"></div> <!-- Saturate the padding space -->
|
|
<div class="longbox"></div> <!-- Saturate the border space -->
|
|
<div class="longbox"></div> <!-- Saturate the margin space -->
|
|
|
|
<div class="longbox"></div> <!-- Saturate the margin space -->
|
|
<div class="longbox"></div> <!-- Saturate the border space -->
|
|
<div class="longbox"></div> <!-- Saturate the padding space -->
|
|
<div class="box"></div>
|
|
<div class="longbox"></div> <!-- Saturate the padding space -->
|
|
<div class="longbox"></div> <!-- Saturate the border space -->
|
|
<div class="longbox"></div> <!-- Saturate the margin space -->
|
|
|
|
|
|
</body></html> |