Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders Test: border-shape overflow clips iframe child</title>
<link rel="match" href="border-shape-overflow-replaced-ref.html">
<meta name="assert" content="When border-shape provides a single shape with overflow:hidden, an iframe child should be clipped to the inner edge of the border.">
<meta name="fuzzy" content="maxDifference=0-110;totalPixels=0-400">
<style>
body {
margin: 0;
padding: 20px;
}
.target {
width: 100px;
height: 100px;
border: 10px solid black;
border-shape: circle(50%);
overflow: hidden;
}
.target > iframe {
display: block;
width: 100%;
height: 100%;
border: none;
}
</style>
<div class="target">
<iframe srcdoc="<style>html,body{margin:0;width:100%;height:100%;background:lime}</style>"
scrolling="no"></iframe>
</div>