mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
43 lines
No EOL
1.5 KiB
HTML
43 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/ --><html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
|
|
<title>CSS Shape Test: float left, circle() reference</title>
|
|
<link href="mailto:tlin@mozilla.com" rel="author" title="Ting-Yu Lin" />
|
|
<link href="http://www.mozilla.org/" rel="author" title="Mozilla" />
|
|
<style>
|
|
.container {
|
|
position: absolute;
|
|
width: 200px;
|
|
line-height: 0;
|
|
}
|
|
|
|
.shape {
|
|
float: left;
|
|
/* Omit shape-outside */
|
|
clip-path: circle();
|
|
box-sizing: content-box;
|
|
height: 40px;
|
|
width: 40px;
|
|
padding: 20px;
|
|
border: 20px solid lightgreen;
|
|
background-color: orange;
|
|
}
|
|
|
|
.box {
|
|
position: absolute;
|
|
width: 60px;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
|
|
</head><body class="container">
|
|
<div class="shape"></div>
|
|
<div style="height: 12px; top: 0px; left: 96px;" class="box"></div> <!-- Box at corner -->
|
|
<div style="height: 12px; top: 12px; left: 108px;" class="box"></div> <!-- Box at corner -->
|
|
<div style="height: 36px; top: 24px; left: 120px;" class="box"></div>
|
|
<div style="height: 36px; top: 60px; left: 120px;" class="box"></div>
|
|
<div style="height: 12px; top: 96px; left: 108px;" class="box"></div> <!-- Box at corner -->
|
|
<div style="height: 12px; top: 108px; left: 96px;" class="box"></div> <!-- Box at corner -->
|
|
|
|
|
|
</body></html> |