Closed Bug 20096 Opened 25 years ago Closed 25 years ago

Stylesheet `width' settings aren't used when rendering TD.

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED DUPLICATE of bug 19961

People

(Reporter: jonpryor, Assigned: karnaze)

References

()

Details

I first observed this at the listed URL, but the following code
demonstrates the bug:

<html>
 <head>
  <title>Testing CSS1</title>
  <style>
   .baz { width: 2cm; }
  </style>
 </head>
 <body>
  <table width="100%">
   <tr>
    <td>foo</td>
    <td class="baz">this text should only be two centimeters wide!</td>
    <td>baz</td>
   </tr>
  </table>
 </body>
</html>

To summarize:
 1) We have a table specified to have a width of "100%" -- so
    the table should fill the screen.

 2) One of the subelements of the table -- a TD -- has its width
    specified by a stylesheet (the 2nd TD -- ``<td class="baz">...</td>'').

 3) When rendering this page, the TD with its width specified
    doesn't use the specified width; it uses the "default" width
    (the width that would be used if no `width' setting were present).

It's interesting to note that this isn't limited to just stylesheets;
replacing ``<td class="baz">'' with ``<td width="2cm">'' produces the
exact same effects: the width specified is ignored.

For reference, observe the page in Internet Explorer 5.0 (perhaps
lower), which appears to render the width specifications correctly.

I was unable to test this bug under any other platforms.
Status: NEW → ASSIGNED
Target Milestone: M15
I tried a few different cell widths and noticed that the page is rendered like
Nav4.6. We need a better rendering in "Standard Mode".
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 19961 ***
Status: RESOLVED → VERIFIED
Verified dup of #19961
You need to log in before you can comment on or make changes to this bug.