mirror of
https://github.com/servo/servo
synced 2026-05-02 04:17:38 +02:00
Implement non-zero dimension attribute parsing
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.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user