blob: 331bc61f20392a7f815014b738a7e01ea92db850 [file] [log] [blame] [edit]
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Backgrounds and Borders Test: 'border-radius' and corner-clipping of content elements</title>
<link rel="author" title="zhouli" href="mailto:liz@oupeng.com">
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="http://www.w3.org/TR/css3-background/#corner-clipping">
<link rel="match" href="reference/border-radius-clipping-ref.html">
<meta content="" name="flag">
<meta name="assert" content="When set with 'overflow: hidden', an outer container must clip background area of its child element at its corners. In this test, the outer container has a 'border-radius' declaration which implies that the clipping must occur at its curves.">
<style>
div#parent
{
border: transparent solid 20px;
border-radius: 50%;
overflow: hidden;
width: 100px;
}
div#son
{
background-color: red;
background-image: url("support/100x100-green-with-red-corners.png");
height: 100px;
width: 100px;
}
</style>
<p>Test passes if there is a filled green circle and <strong>no red</strong>.
<div id="parent">
<div id="son"></div>
</div>