<td> width attributes ignored
Another page rendering issue that's introduced after the 3.0.5 release, this time affecting my own website. URL: http://www.ombertech.com/ CSS: enabled or disabled Summary: <td> width attributes ignored. 3.0.5: Heading table at the top of the page displays correctly scaled with links in the middle formatted in a horizontal row if they all fit in 1/3rd of the browser window's width. 3.1.0-rc1: The "width" attributes of the <td> elements are ignored and the links in the middle are thereby squashed into a vertical row. Further testing with modified versions of the page shows that this table cell width problem is only present if the width attribute in the <td> elements is a percentage and the <table> element also has a width attribute set as a percentage, then the <td> width attributes get ignored. If either (or both) table or td width is in pixels, the problem isn't present, only when table and td width are both specified as percentages. So far as I can tell setting width in <table> and <td> elements as a percentage is valid for HTML 4.01 Transitional, and other browsers (Links, Firefox) render the table correctly.
Hi, On Sat, Apr 20, 2024 at 01:49:13PM +1000, Kevin Koster wrote:
Another page rendering issue that's introduced after the 3.0.5 release, this time affecting my own website.
URL: http://www.ombertech.com/ CSS: enabled or disabled Summary: <td> width attributes ignored. 3.0.5: Heading table at the top of the page displays correctly scaled with links in the middle formatted in a horizontal row if they all fit in 1/3rd of the browser window's width. 3.1.0-rc1: The "width" attributes of the <td> elements are ignored and the links in the middle are thereby squashed into a vertical row. Further testing with modified versions of the page shows that this table cell width problem is only present if the width attribute in the <td> elements is a percentage and the <table> element also has a width attribute set as a percentage, then the <td> width attributes get ignored. If either (or both) table or td width is in pixels, the problem isn't present, only when table and td width are both specified as percentages.
So far as I can tell setting width in <table> and <td> elements as a percentage is valid for HTML 4.01 Transitional, and other browsers (Links, Firefox) render the table correctly.
Thanks. This is caused by commit f5a0b6[1], which should be already solved[2]. Reverting it fixes this specific problem, I'll add some regression tests and see if it doesn't break anything else. [1]:https://github.com/dillo-browser/dillo/commit/f5a0b6030c2001e5a0fcacf8139afa... [2]:https://github.com/dillo-browser/dillo/commit/b0f6a3f055039c5c9c3ab651029a31... Best, Rodrigo.
Thanks. This is caused by commit f5a0b6[1], which should be already solved[2]. Reverting it fixes this specific problem, I'll add some regression tests and see if it doesn't break anything else.
[1]:https://github.com/dillo-browser/dillo/commit/f5a0b6030c2001e5a0fcacf8139afa... [2]:https://github.com/dillo-browser/dillo/commit/b0f6a3f055039c5c9c3ab651029a31...
Merged in: https://github.com/dillo-browser/dillo/commit/b18496029c93a601646245adeb1937... Rodrigo.
participants (2)
-
Kevin Koster
-
Rodrigo Arias