Open Bug 368732 Opened 18 years ago Updated 3 years ago

Odd default widths in tables using COLSPAN

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: sphericx, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9 I am attempting to create a simple bar chart using standard tables (using css to set the background colour of cells to create the "bars". the basic method involves having a cell representing the largest value set to colspan="100" and cells representing smaller values to lower numbers (mathematically a percentage). Firefox seems to have difficulty with the relative sizes of the bars On the test code shown below, the top bar appears to display correctly, whereas the second bar appears almost the same size as the bottom two, despite the second par spanning 48 columns and the others just 2. Displays correctly with IE6, Im afraid I don't have the resources to check on other browsers. -- Demonstrative code <html><head><title>test</title></head><body> <table><thead><tr><td>Browser Name</td><td>Hits</td><td colspan="100" >Graph</td></tr></thead><tbody><tr><td>Firefox</td><td>336</td><td style="background-color: #336699;" colspan="100">&nbsp;</td></tr><tr><td>Internet Explorer</td><td>162</td><td style="background-color: #336699;" colspan="48">&nbsp;</td><td colspan="52">&nbsp;</td></tr><tr><td>Other</td><td>10</td><td style="background-color: #336699;" colspan="2">&nbsp;</td><td colspan="98">&nbsp;</td></tr><tr><td>Mozilla</td><td>7</td><td style="background-color: #336699;" colspan="2">&nbsp;</td><td colspan="98">&nbsp;</td></tr></tbody></table> </body></html> Reproducible: Always Steps to Reproduce: 1. stick the demonstrative code into an html file 2. let firefox display it 3. observe the second bar's size incomparisson to the 3rd/4th Actual Results: second bar's size appears just a few pixels larger than 3rd, 4th Expected Results: second bar should be roughly 20x the size of the 3rd and 4th seems unaffected by strict/quirks mode Apologies if I've omitted anything important... first time.
Keywords: testcase
Attached image what Im seeing....
The image that steve england created corresponds to the expected behaviour... I've attached an image of the behaviour I've observed
(In reply to comment #2) > Created an attachment (id=253382) [details] > what Im seeing.... > > The image that steve england created corresponds to the expected behaviour... > I've attached an image of the behaviour I've observed > apologies, never used bugzilla before and managed to confuse myself... thought steve had uploaded an image of the correct behaviour...
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: