1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>
5 CSS Values and Units Test:
6 Range clamping into calc() expressions
7 </title>
8 <meta content="
9 A calc expression can evaluate to a value which is outside the validity range.
10 If it does, this value must be clamped into the range.
11 The declaration must not be ignored.
12 " name="assert">
13
14 <link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
15
16 <link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
17
18 <link href="reference/200-200-green.htm" rel="match">
19
20 <style type="text/css">
21
22 html, body { margin: 0px; padding: 0px; }
23
24 html { background: white; overflow: hidden; }
25 #outer { background: green; width: 200px; height: 200px; }
26 #outer { border-radius: 10px; border-radius: calc(-10px); }
27
28 </style>
29
30 </head>
31 <body>
32
33 <div id="outer"></div>
34
35
36
37 </body></html>