block-step-computed.html (2761B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Rhythm: block-step computed values</title> 5 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> 6 <link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step"> 7 <meta name="assert" content="Checking computed values for block-step"> 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 <script> 15 // Default values 16 test_computed_value("block-step", "none"); 17 test_computed_value("block-step", "auto", "none"); 18 test_computed_value("block-step", "margin-box", "none"); 19 test_computed_value("block-step", "up", "none"); 20 21 test_computed_value("block-step", "none auto", "none"); 22 test_computed_value("block-step", "none margin-box", "none"); 23 test_computed_value("block-step", "none up", "none"); 24 25 test_computed_value("block-step", "auto none", "none"); 26 test_computed_value("block-step", "auto margin-box", "none"); 27 test_computed_value("block-step", "auto up", "none"); 28 29 test_computed_value("block-step", "margin-box none", "none"); 30 test_computed_value("block-step", "margin-box auto", "none"); 31 test_computed_value("block-step", "margin-box up", "none"); 32 33 test_computed_value("block-step", "up none", "none"); 34 test_computed_value("block-step", "up auto", "none"); 35 test_computed_value("block-step", "up margin-box", "none"); 36 37 test_computed_value("block-step", "auto up margin-box", "none"); 38 test_computed_value("block-step", "none auto up margin-box", "none"); 39 40 // Non-default values 41 test_computed_value("block-step", "padding-box"); 42 test_computed_value("block-step", "content-box"); 43 test_computed_value("block-step", "100px"); 44 test_computed_value("block-step", "center"); 45 test_computed_value("block-step", "start"); 46 test_computed_value("block-step", "end"); 47 test_computed_value("block-step", "down"); 48 test_computed_value("block-step", "nearest"); 49 50 test_computed_value("block-step", "none padding-box up", "padding-box"); 51 test_computed_value("block-step", "content-box 100px up", "100px content-box"); 52 test_computed_value("block-step", "content-box start 100px", "100px content-box start"); 53 test_computed_value("block-step", "100px center down padding-box", "100px padding-box center down"); 54 test_computed_value("block-step", "start 100px", "100px start"); 55 test_computed_value("block-step", "end 100px", "100px end"); 56 test_computed_value("block-step", "end nearest 100px", "100px end nearest"); 57 test_computed_value("block-step", "center content-box 100px", "100px content-box center"); 58 </script> 59 </body> 60 </html>