https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bcb0c3b2a28cfcd91a767b683b39f4f990a91f90 authored by Matt Falkenhagen on 09 April 2018, 08:40:54 UTC
service worker: Add tests for inteception of workers after redirects.
Tip revision: bcb0c3b
fixed-layout-calc-width-001.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">

<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>
back to top