row-gap-computed.html (905B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Box Alignment Level 3: getComputedStyle().rowGap</title> 6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> 7 <meta name="assert" content="row-gap computed value is a specified keyword or a computed <length-percentage>."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 <style> 12 #target { 13 font-size: 40px; 14 } 15 </style> 16 </head> 17 <body> 18 <div id="target"></div> 19 <script> 20 test_computed_value("row-gap", "normal"); 21 22 test_computed_value("row-gap", "10px"); 23 test_computed_value("row-gap", "20%"); 24 test_computed_value("row-gap", "calc(20% + 10px)"); 25 26 test_computed_value("row-gap", "calc(-0.5em + 10px)", "0px"); 27 test_computed_value("row-gap", "calc(0.5em + 10px)", "30px"); 28 </script> 29 </body> 30 </html>