gecko-dev/testing/web-platform/tests/css/css-multicol/parsing/column-width-computed.html
Eric Willigers fb028b90d4 Bug 1510315 [wpt PR 14259] - [css-multicol] property parsing, computed values, a=testonly
Automatic update from web-platform-tests
[css-multicol] property parsing, computed values (#14259)

Test that CSS Multi-column Layout properties parse exactly the grammar
specified in the spec.
https://drafts.csswg.org/css-multicol/

Test that computed values are as specified, with lengths made absolute.
--

wpt-commits: fa234f78976ca7abea803fceb3eb53ad3a8603d2
wpt-pr: 14259
2018-12-11 15:49:58 +00:00

26 lines
784 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Multi-column Layout: getComputedValue().columnWidth</title>
<link rel="help" href="https://drafts.csswg.org/css-multicol/#propdef-column-width">
<meta name="assert" content="column-width computed value is the keyword auto or an absolute length.">
<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>
<style>
#target {
font-size: 40px;
}
</style>
<script>
test_computed_value("column-width", "auto");
test_computed_value("column-width", "calc(10px + 0.5em)", "30px");
test_computed_value("column-width", "calc(10px - 0.5em)", "0px");
</script>
</body>
</html>