-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
What is the issue with the HTML Standard?
From https://html.spec.whatwg.org/multipage/rendering.html#tables-2
The table element's height attribute maps to the dimension property 'height' on the table element.
The table element's width attribute maps to the dimension property (ignoring zero) 'width' on the table element.
The col element's width attribute maps to the dimension property 'width' on the col element.
The thead, tbody, and tfoot elements' height attribute maps to the dimension property 'height' on the element.
The tr element's height attribute maps to the dimension property 'height' on the tr element.
The td and th elements' height attributes map to the dimension property (ignoring zero) 'height' on the element.
The td and th elements' width attributes map to the dimension property (ignoring zero) 'width' on the element.
This is missing colgroup
elements, that share the HTMLTableColElement
interface with col
elements.
Testcase:
<!DOCTYPE html>
<table border cellspacing="0">
<colgroup width="100"></colgroup>
<tr height="100"></tr>
</table>
That's a 100x100 table on Gecko, Blink and WebKit.