1 <!DOCTYPE html>
2 <html><head>
3 <title>CSS Test: test for border-radius: calc()</title>
4 <link href="https://dbaron.org/" 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-border-radius-1-ref.htm" rel="match">
7 <meta content="" name="flags">
8 <style type="text/css">
9
10 p {
11 /* We use powers of two here to avoid floating-point issues.
12 See bug 590181. */
13
14 height: 256px;
15 width: 512px;
16 background: blue;
17 border-radius: calc((1/32 * 100%) + 5px)
18 calc((1/64 * 100%) - 2px)
19 calc(10px + (1/256 * 100%))
20 calc((1/16 * 100%) - 3px) /
21 calc((1/32 * 100%) - (1px + (1/128 * 100%)))
22 calc(1/16 * 100%)
23 calc(10px)
24 3px;
25 }
26
27 </style>
28 </head>
29 <body>
30 <p></p>
31
32
33 </body></html>