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.
50 lines
No EOL
1.5 KiB
HTML
50 lines
No EOL
1.5 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, circle(50% at right top) 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 {
|
|
direction: rtl;
|
|
position: absolute;
|
|
width: 200px;
|
|
line-height: 0;
|
|
}
|
|
|
|
.shape {
|
|
float: right;
|
|
/* Omit shape-outside */
|
|
clip-path: circle(50% at right top);
|
|
box-sizing: content-box;
|
|
height: 40px;
|
|
width: 40px;
|
|
padding: 20px;
|
|
border: 20px solid lightgreen;
|
|
background-color: orange;
|
|
}
|
|
|
|
.box {
|
|
position: absolute;
|
|
width: 120px;
|
|
background-color: blue;
|
|
}
|
|
|
|
.long {
|
|
width: 200px;
|
|
}
|
|
</style>
|
|
|
|
</head><body class="container">
|
|
<div class="shape"></div>
|
|
<div class="shape"></div>
|
|
<div style="height: 36px; top: 0px; right: 60px;" class="box"></div>
|
|
<div style="height: 12px; top: 36px; right: 48px;" class="box"></div>
|
|
<div style="height: 12px; top: 48px; right: 36px;" class="box"></div>
|
|
<div style="height: 60px; top: 60px; right: 0px;" class="long box"></div> <!-- Fill the space between two floats -->
|
|
<div style="height: 36px; top: 120px; right: 60px;" class="box"></div>
|
|
<div style="height: 12px; top: 156px; right: 48px;" class="box"></div>
|
|
<div style="height: 12px; top: 168px; right: 36px;" class="box"></div>
|
|
|
|
|
|
</body></html> |