mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
39 lines
No EOL
1.2 KiB
HTML
39 lines
No EOL
1.2 KiB
HTML
<!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>Border radius clipping</title>
|
|
<link href="mailto:liz@oupeng.com" rel="author" title="zhouli" />
|
|
<link href="http://www.w3.org/TR/css3-background/#corner-clipping" rel="help" />
|
|
<link href="reference/border-radius-clipping-ref.xht" rel="match" />
|
|
<meta content="When set with 'overflow: hidden', outer container should clip background of an element insides at the corners. " name="assert" />
|
|
<style>
|
|
#parent{
|
|
border-radius: 15px;
|
|
border: 1px solid blue;
|
|
overflow: hidden;
|
|
width: 300px;
|
|
height: 30px;
|
|
}
|
|
#son{
|
|
background-color: green;
|
|
width: 300px;
|
|
height: 30px;
|
|
}
|
|
#dummy {
|
|
border-radius: 5000em;
|
|
height: 10000em;
|
|
overflow: hidden;
|
|
width: 10000em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="parent">
|
|
<div id="son"></div>
|
|
</div>
|
|
<div id="dummy">
|
|
This should not appear if browser supports border-radius
|
|
</div>
|
|
<script>
|
|
</script>
|
|
|
|
</body></html> |