fune/testing/web-platform/tests/css/css-tables/fixed-layout-calc-width-001.html
Xiaocheng Hu 3f16a4dbed Bug 1585178 [wpt PR 19424] - Add/Revise WPT to reflect resolution of calc() in table layout, a=testonly
Automatic update from web-platform-tests
Add/Revise WPT to reflect resolution of calc() in table layout

https://github.com/w3c/csswg-drafts/issues/94 made a resolution that

"Any math expression of a complex type is treated as auto. Simple typed
things continue to work as today."

This patch adds new tests and revises existing tests to reflect the
resolution.

Bug: 382725
Change-Id: I522799b51fdd4a7cfa66e137ae31c68aaf2dea73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832619
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701597}

--

wpt-commits: cda40b6ff20c841a6195e95387d09072db8fd6e3
wpt-pr: 19424
2019-10-14 11:23:20 +00:00

36 lines
867 B
HTML

<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#distributing-width-to-columns">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/94">
<style>
table {
width: 200px;
border-collapse: collapse;
table-layout: fixed;
height: 20px;
}
td {
padding: 0px;
background: lime;
outline: 1px solid blue;
}
</style>
<h2>Calc width on col is treated as auto, even in fixed tables</h2>
<table id=theTable>
<col style="width:calc(20% + 80px)">
<tr>
<td data-expected-width=100></td>
<td data-expected-width=100></td>
</tr>
</table>
<script>
checkLayout('#theTable')
</script>