summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-radius-different-width-001.htm
blob: 51bfe5aa5b6d0f90847da4f34792eb5d06aea954 (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
61
62
63
64
65
66
67
68
69
70
71
<!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: Adjoining borders with different thicknesses show a smooth transition between the thicker and the thinner borders.</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="assert" content="When 'border-radius' is applied to two adjoining sides with different thicknesses the border shows a smooth transition between the thicker and the thinner sides." />
        <style type="text/css">
            div
            {
                width:200px;
                height:100px;
                border-style:solid;
                border-radius: 40px;
                margin: 10px;
            }
            #test1
            {
                border-width:10px 15px 20px 30px;
            }
            #test2
            {
                border-width:10px 25px 40px;
            }
            #test3
            {
                border-width:10px 25px;
            }
            #test4
            {
                border-width:thin medium thick thin;
            }
            #test5
            {
                border-width:thin medium thick;
            }
            #test6
            {
                border-width:thin thick;
            }
            #test7
            {
                border-style:solid;
                border-width:4px 16px 32px 100px;
                border-radius:80px;
                height:264px;
                width:50px;
            }
        </style>
    </head>
    <body>
        <p>Test passes if the boxes have rounded corners and show a smooth transition between the thicker and the thinner sides.</p>
        <table>
            <tr>
                <td>
                    <div id="test1"></div>
                    <div id="test2"></div>
                    <div id="test3"></div>
                </td>
                <td>
                    <div id="test4"></div>
                    <div id="test5"></div>
                    <div id="test6"></div>
                </td>
                <td>
                    <div id="test7"></div>
                </td>
            </tr>
        </table>
    </body>
</html>