mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
Fixes #8445 The only attributes I found that we have implemented that uses non-zero dimenion attributes: * `width` for `<td>` and `<th>` (table cells) * `width` for `<table>` I updated these implementations to use the new non-zero dimension attribute parsing and added associated regression tests.
55 lines
659 B
HTML
55 lines
659 B
HTML
<link rel="match" href="table-cell-width-ref.html">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
table {
|
|
width: 400px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th {
|
|
font-weight: normal;
|
|
text-align: left;
|
|
}
|
|
|
|
td, th {
|
|
padding: 0;
|
|
}
|
|
|
|
td:first-child, th:first-child {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
|
|
<!-- width=0 should be treated as 'auto' -->
|
|
<table>
|
|
<tr>
|
|
<th width=0>a</th>
|
|
<th>a</th>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width=0>a</td>
|
|
<td>a</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- test valid width attribute value-->
|
|
<table>
|
|
<tr>
|
|
<th width=100>a</th>
|
|
<th>a</th>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width=100>a</td>
|
|
<td>a</td>
|
|
</tr>
|
|
</table>
|