MantisBT - NetSurf
View Issue Details
0000504NetSurfLayoutpublic2010-11-14 20:422014-02-09 22:31
ReporterRichard Porter 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0000504: Nested table alignment
DescriptionI thought this one had been cleared a long time ago, but it's either back again or still there.

A table inside a table cell with centre alignment (e.g. a table header) is not centered but left aligned. Within the table, the contents of data cells are centered when they should be left aligned. If the nested table cell contains an unordered list then the bullets are left aligned but the text of list items is centered. This probably applied to oiredered lists too but I haven't tried them.
Additional Informationminijem added a note on Mon Nov 15 10:45:41 2010

It looks like this might be specific to table header cells <th> as using a data cell plus a center tag works fine. I haven't tried align attributes yet.

Imported from sourceforge bug http://sourceforge.net/support/tracker.php?aid=3109233 on Tue Dec 10 17:34:12 2013

TagsNo tags attached.
Attached Fileshtml test.html (463) 2013-12-20 23:56
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=39&type=bug

Notes
(0000101)
Vincent Sanders   
2013-12-20 23:22   
An example bit of html would be useful
(0000104)
Richard Porter   
2013-12-20 23:54   
Try this:
<html><head><title>Nested Table example</title></head>
<body>
<table width=500 border=1><tr><th>This is a header cell in the outer table.
  <table border=1><tr><td width=300>This table should be centered within the outer table.
         
This text should be left aligned.
         
Next line
         
Another line
         
  • List item 1

  •              
  • List item 2 longer

  •          

</td></tr>
  </table></th></tr>
</table>
</body>
</html>
(0000208)
Richard Porter   
2014-02-09 22:31   
This is still a problem.

Issue History
2013-12-10 17:41Vincent SandersNew Issue
2013-12-10 17:41Vincent SandersStatusnew => assigned
2013-12-10 17:41Vincent SandersAssigned To => Sourceforge Import placeholder
2013-12-20 23:22Vincent SandersNote Added: 0000101
2013-12-20 23:22Vincent SandersAssigned ToSourceforge Import placeholder =>
2013-12-20 23:22Vincent SandersStatusassigned => acknowledged
2013-12-20 23:22Vincent SandersResolutionno change required => open
2013-12-20 23:22Vincent SandersCategoryGeneral => Layout
2013-12-20 23:22Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=671#r671
2013-12-20 23:22Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=673#r673
2013-12-20 23:54Richard PorterNote Added: 0000104
2013-12-20 23:56Richard PorterFile Added: test.html
2014-02-09 22:31Richard PorterNote Added: 0000208