fune/testing/web-platform/tests/css/css-flexbox/parsing/flex-grow-computed.html
Sergio 29b38d9a22 Bug 1707621 [wpt PR 28695] - Allow multiple equivalent representations for flex-{grow|shrink} computed values, a=testonly
Automatic update from web-platform-tests
Allow multiple equivalent representations for flex-{grow|shrink} computed values (#28695)

--

wpt-commits: 935bbb95a6cc75aa25fb9c2ae9c63e457dc23453
wpt-pr: 28695
2021-10-05 12:49:22 +00:00

21 lines
737 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Flexible Box Layout: getComputedStyle().flexGrow</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-flex-grow">
<meta name="assert" content="flex-grow 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-grow", "1");
test_computed_value("flex-grow", "2.34e+06", ["2.34e+06", "2340000"]);
test_computed_value("flex-grow", "6.78e+08", ["6.78e+08", "678000000"]);
test_computed_value("flex-grow", "0");
</script>
</body>
</html>