1 <!DOCTYPE html>
2 <html><head>
3 <title>CSS Test: Test for calc() on background-size</title>
4 <link href="https://bugzilla.mozilla.org/show_bug.cgi?id=594934" rel="author" title="L. David Baron">
5 <link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
6 <link href="reference/calc-background-size-1-ref.htm" rel="match">
7 <meta content="" name="flags">
8 <style type="text/css">
9
10 p {
11 height: 50px; width: 200px;
12 border: thin solid;
13 background-image: url(../backgrounds/blue-32x32.png);
14 background-repeat: no-repeat;
15 }
16
17 #one { background-size: calc(50px + 50%) calc(100% - 30px) }
18 #two { background-size: calc(50px + 50%) calc(10px - 50%) }
19
20 </style>
21 </head>
22 <body>
23 <p id="one"></p>
24 <p id="two"></p>
25
26
27 </body></html>