calc-parenthesis-stack

Calc() inside calc()

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
The calc() function notation is allowed inside a calc() notation.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 	<meta charset="utf-8">
 4 	<title>
 5 		CSS Values and Units Test:
 6 		Calc() inside calc()
 7 	</title>
 8 	<meta content="
 9 		The calc() function notation is allowed inside a calc() notation.
10 	" name="assert">
11 
12 	<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
13 
14 	<link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
15 
16 	<link href="reference/all-green.htm" rel="match">
17 
18 	<style type="text/css">
19 
20 			html, body { margin: 0px; padding: 0px; }
21 
22 			html { background: red; overflow: hidden; }
23 			#outer { position: absolute; top: 0px; left: 0px; background: green; width: 100%; }
24 			#outer { height: calc((((((((((((((((((((((((100%)))))))))))))))))))))))); }
25 
26 	</style>
27 
28 </head>
29 <body>
30 
31 	<div id="outer"></div>
32 
33 
34 
35 </body></html>