mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +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.
38 lines
568 B
HTML
38 lines
568 B
HTML
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
.row {
|
|
clear: both;
|
|
}
|
|
|
|
.row div {
|
|
float: left;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
|
|
<div class="row">
|
|
<div class="red" style="width: 200px">a</div>
|
|
<div style="width: 200px">a</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="red" style="width: 200px">a</div>
|
|
<div style="width: 200px">a</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="red" style="width: 100px">a</div>
|
|
<div style="width: 300px">a</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="red" style="width: 100px">a</div>
|
|
<div style="width: 300px">a</div>
|
|
</div>
|