Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colgroup elements should map width attribute to the dimension property width #10623

Open
Loirooriol opened this issue Sep 12, 2024 · 0 comments

Comments

@Loirooriol
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants