mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Add width
and height
presentational hints for table-related elements (#33405)
We were only parsing the `width` attribute as a presentation hint for `<table>`, `<td>` and `<th>`. This patch also handles `<colgroup>` and `<col>`. Also, we weren't parsing `height` at all, now we do it for `<table>`, `<td>`, `<th>`, `<tr>`, `<tbody>`, `<thead>` and `<tfoot>`. One test is now crashing, but this was an existing issue: #33423 Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
37ab4b9825
commit
4839cdf176
16 changed files with 65 additions and 228 deletions
|
@ -128,30 +128,18 @@
|
|||
[table th align attribute justify is correct]
|
||||
expected: FAIL
|
||||
|
||||
[tr height attribute pixel is correct]
|
||||
expected: FAIL
|
||||
|
||||
[td height attribute pixel is correct]
|
||||
expected: FAIL
|
||||
|
||||
[th height attribute pixel is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table_tr height attribute percentage is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table_td height attribute percentage is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table_th height attribute percentage is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table height attribute pixel is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table height attribute 90% is correct]
|
||||
expected: FAIL
|
||||
|
||||
[table height attribute 110% is correct]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -160,6 +148,3 @@
|
|||
|
||||
[th default align attribute is center]
|
||||
expected: FAIL
|
||||
|
||||
[table col width attribute is correct]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[table-row-group-height.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue