bottom-computed.html (823B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Positioned Layout Module Level 3: getComputedStyle().bottom</title> 6 <link rel="help" href="https://drafts.csswg.org/css-position/#propdef-bottom"> 7 <meta name="assert" content="bottom lengths are made absolute."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 </head> 12 <body> 13 <div id="target"></div> 14 <style> 15 #target { 16 font-size: 40px; 17 } 18 </style> 19 <script> 20 test_computed_value("bottom", "auto"); 21 22 test_computed_value("bottom", "calc(10px + 0.5em)", "30px"); 23 test_computed_value("bottom", "calc(10px - 0.5em)", "-10px"); 24 test_computed_value("bottom", "-40%"); 25 test_computed_value("bottom", "calc(50% + 60px)"); 26 </script> 27 </body> 28 </html>