summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/zero-column-width-computed-style.html
blob: 46d876f1a150c257be9c37d25a4a4c34d2f1d73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<title>column-width:0</title>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-multicol/#cw" title="3.1. column-width">
<div id="longhand" style="column-width:0;"></div>
<div id="shorthand" style="columns:0;"></div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
  assert_equals(getComputedStyle(longhand).columnWidth, "0px");
  assert_equals(getComputedStyle(shorthand).columnWidth, "0px");
}, "column-width:0 is a valid CSS declaration");
</script>