max-inline-size-computed.html (1093B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Logical Properties and Values: getComputedStyle().maxInlineSize</title> 6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-max-inline-size"> 7 <meta name="assert" content="Computed max-inline-size is the specified keyword, or the length-percentage 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 <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("max-inline-size", "none"); 21 22 test_computed_value("max-inline-size", "10px"); 23 test_computed_value("max-inline-size", "20%"); 24 test_computed_value("max-inline-size", "calc(10px + 0.5em)", "30px"); 25 test_computed_value("max-inline-size", "calc(10px - 0.5em)", "0px"); 26 test_computed_value("max-inline-size", "calc(20% + 10px)"); 27 28 test_computed_value("max-inline-size", "min-content"); 29 test_computed_value("max-inline-size", "max-content"); 30 </script> 31 </body> 32 </html>