Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Borders Test: outline follows border-shape with double shape</title>
<link rel="help" href="https://drafts.csswg.org/css-ui/#outline">
<link rel="match" href="border-shape-outline-double-shape-ref.html">
<meta name="fuzzy" content="maxDifference=0-150;totalPixels=0-2000">
<style>
body { margin: 0; }
.container { padding: 40px; }
.target {
width: 100px;
height: 100px;
background: lightblue;
/* Equivalent to border-radius: 50%. The outer edge is the border-box (120x120),
inner edge is padding-box (100x100) */
border-shape: circle(50% at 50% 50%) border-box circle(50% at 50% 50%) padding-box;
border: 10px solid green;
outline: 4px solid red;
}
</style>
<div class="container">
<div class="target"></div>
</div>