blob: 759bd5ce4836899512fe8b435a18bd1aad78cfc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<!DOCTYPE html>
<html>
<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="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
<link rel="match" href="reference/border-radius-clip-002-ref.htm">
<link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#corner-clipping">
<meta name="assert" content="Background is clipped to the curve of the content-box when 'background-clip: content-box'">
<meta name=fuzzy content="0-70;0-50">
<style type="text/css">
#test-base
{
width: 98px;
height: 98px;
border: 10px double black;
padding: 11px;
border-radius: 40px;
background: red url(support/swatch-red.png);
background-clip: content-box;
}
#reference-cover
{
margin: -120px 0 40px 20px;
width: 100px;
height: 100px;
border-radius: 20px;
background-color: black;
}
#reference-base
{
width: 98px;
height: 98px;
margin-top: 62px;
margin-left: 20px;
border-radius: 20px;
background: red url(support/swatch-red.png);
}
#test-cover
{
margin-top: -120px;
border: 10px double black;
padding: 10px;
width: 100px;
height: 100px;
border-radius: 40px;
background-color: black;
background-clip: content-box;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div id="test-base"></div>
<div id="reference-cover"></div>
<div id="reference-base"></div>
<div id="test-cover"></div>
</body>
</html>
|