|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>CSS Test: test for border-radius: calc()</title> |
|
5 <link rel="author" title="L. David Baron" href="http://dbaron.org/"> |
|
6 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation"> |
|
7 <meta name="flags" content=""> |
|
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 </body> |
|
32 </html> |