max-unitless-zero-invalid.html (837B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Values and Units Test: min() with unitless 0</title> 6 7 <meta name="assert" content="Unitless 0 isn't supported in math functions."> 8 <link rel="author" title="Fuqiao Xue" href="mailto:xfq@w3.org"> 9 <link rel="help" href="https://drafts.csswg.org/css-values/#calc-type-checking"> 10 <link rel="match" href="reference/all-green.html"> 11 12 <style> 13 html, body { margin: 0px; padding: 0px; } 14 15 html { background: red; overflow: hidden; } 16 #outer { position: absolute; top: 0px; left: 0px; background: green; width: 100%; } 17 18 #outer { 19 /* Assert that min() is supported */ 20 height: min(100%); 21 22 /* The min() expression (thus the declaration) should be invalid */ 23 height: min(0, 100%); 24 } 25 </style> 26 27 </head> 28 <body> 29 30 <div id="outer"></div> 31 32 </body> 33 </html>