gecko-dev/testing/web-platform/tests/css/css-multicol/zero-column-width-computed-style.html
Morten Stenshorne 50fdb2c2f7 Bug 1456235 [wpt PR 10586] - Allow column-width:0., a=testonly
Automatic update from web-platform-testsAllow column-width:0.

The spec recently changed from disallowing this to allowing it.
Removed a test that expected it to be disallowed, and wrote new
tests for the new expected behavior.

Bug: 832085
Change-Id: Id6fa0a311fe3f50414c68658d807b99e92acc226
Reviewed-on: https://chromium-review.googlesource.com/1023409
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552770}

--

wpt-commits: 3a2abb9733a257061505ee7b410c393cea194ee2
wpt-pr: 10586
2018-04-30 14:36:10 +00:00

14 lines
626 B
HTML

<!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>