wpt / css / css-flexbox / parsing / flex-shrink-computed.html

Status: PASS | Duration: 55ms | Subtests: 4/4 | 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 flex-shrink value '1'PASS
Property flex-shrink value '2.34e+06'PASS
Property flex-shrink value '6.78e+08'PASS
Property flex-shrink value '0'PASS

/css/css-flexbox/parsing/flex-shrink-computed.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Flexible Box Layout: getComputedStyle().flexShrink</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-flex-shrink">
<meta name="assert" content="flex-shrink computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("flex-shrink", "1");
test_computed_value("flex-shrink", "2.34e+06", ["2.34e+06", "2340000"]);
test_computed_value("flex-shrink", "6.78e+08", ["6.78e+08", "678000000"]);
test_computed_value("flex-shrink", "0");
</script>
</body>
</html>