summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/reference/border-radius-clip-002-ref.htm
blob: 2a68ea3587a23e6eef1dce22511a7f14ffc0d3a3 (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
<!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/">
        <style type="text/css">
            .base
            {
                width: 98px;
                height: 98px;
                border: 10px double black;
                padding: 11px;
                border-radius: 40px;
            }
            .cover
            {
                margin: -120px 0 40px 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 class="base"></div>
        <div class="cover"></div>
        <div class="base"></div>
        <div class="cover"></div>
    </body>
</html>