blob: c8eba29fe9d34d3b5a6b34b9745a03a1c639aa18 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Background is clipped to the curve of the content-box when 'background-clip: content-box'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius" />
<meta name="flags" content="" />
<meta name="assert" content="Background is clipped to the curve of the content-box when 'background-clip: content-box'" />
<style type="text/css">
#test
{
width: 100px;
height: 100px;
border: 10px solid black;
padding: 10px;
border-radius: 40px;
background: red;
background-clip: content-box;
}
#reference
{
margin-top: -120px;
margin-left: 20px;
width: 100px;
height: 100px;
border-radius: 20px;
background-color: black;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div id="test"></div>
<div id="reference"></div>
</body>
</html>