wpt / css / css-logical / parsing / max-inline-size-computed.html

Status: PASS | Duration: 53ms | Subtests: 8/8 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
Property max-inline-size value 'none'PASS
Property max-inline-size value '10px'PASS
Property max-inline-size value '20%'PASS
Property max-inline-size value 'calc(10px + 0.5em)'PASS
Property max-inline-size value 'calc(10px - 0.5em)'PASS
Property max-inline-size value 'calc(20% + 10px)'PASS
Property max-inline-size value 'min-content'PASS
Property max-inline-size value 'max-content'PASS

/css/css-logical/parsing/max-inline-size-computed.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Logical Properties and Values: getComputedStyle().maxInlineSize</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-max-inline-size">
<meta name="assert" content="Computed max-inline-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-inline-size", "none");

test_computed_value("max-inline-size", "10px");
test_computed_value("max-inline-size", "20%");
test_computed_value("max-inline-size", "calc(10px + 0.5em)", "30px");
test_computed_value("max-inline-size", "calc(10px - 0.5em)", "0px");
test_computed_value("max-inline-size", "calc(20% + 10px)");

test_computed_value("max-inline-size", "min-content");
test_computed_value("max-inline-size", "max-content");
</script>
</body>
</html>