blob: 12764d3ea6389747e14c2593c42ec480c3c0cc30 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Logical Properties and Values: getComputedStyle().maxBlockSize</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-max-block-size">
<meta name="assert" content="Computed max-block-size is the specified keyword, or the length-percentage made absolute.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#target {
font-size: 40px;
}
</style>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("max-block-size", "none");
test_computed_value("max-block-size", "10px");
test_computed_value("max-block-size", "20%");
test_computed_value("max-block-size", "calc(10px + 0.5em)", "30px");
test_computed_value("max-block-size", "calc(10px - 0.5em)", "0px");
test_computed_value("max-block-size", "calc(20% + 10px)");
test_computed_value("max-block-size", "min-content");
test_computed_value("max-block-size", "max-content");
</script>
</body>
</html>