summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-color-applied-to-rounded-inline-element.htm
blob: 8199a45d16302d79e6a0001f9fdf474d87481d71 (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
<!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-color' applied to a rounded inline element</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/css3-background/#background-color" />
        <meta name="assert" content="'Background-color' is clipped according to the 'background-clip' property in an inline element." />
        <style type="text/css">
            div
            {
                border-radius: 20px;
                background-color: orange;
                background-clip: border-box;
                color: orange;
                padding: 15px;
                display: inline;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is an orange box with rounded corners below.</p>
        <div>Filler Text</div>
    </body>
</html>