Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="match" href="border-shape-clips-background-ref.html">
<meta name="fuzzy" content="maxDifference=0-96;totalPixels=0-256">
<style>
#target {
width: 100px;
height: 100px;
border-shape: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
stroke: purple;
stroke-width: 10px;
border-radius: 10px;
position: relative;
overflow: hidden;
}
#inner {
background: green;
position: absolute;
inset: 0;
}
</style>
<div id="target">
<div id="inner"></div>
</div>