Closed Bug 158439 Opened 22 years ago Closed 22 years ago

Table don't show with 100% height when XHTML doctype is used.

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: munzeitig, Assigned: karnaze)

Details

When using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "DTD/xhtml1-transitional.dtd">, table won't show with 100% 
heigh. When remuving DOCTYPE, work correctly.
It is not only that tables do not show at 100%. Tables do not appear to respect 
the "height" style when given in any type of percentage units. The only 
exception to this is when the "position" style is set to "fixed", in which case 
it appears to work properly. Tables appear to honor the "height" style if it's 
given in pixel units. This problem only occurs if using an XHTML doctype.
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional

<!ATTLIST table
  %attrs;
  summary     %Text;         #IMPLIED
  width       %Length;       #IMPLIED
  border      %Pixels;       #IMPLIED
  frame       %TFrame;       #IMPLIED
  rules       %TRules;       #IMPLIED
  cellspacing %Length;       #IMPLIED
  cellpadding %Length;       #IMPLIED
  align       %TAlign;       #IMPLIED
  bgcolor     %Color;        #IMPLIED
  >

height not defined for this DTD.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Opera and IE support percentages units for "height." But, yes, you're 
right, "height" is not in the DTD. What I'm puzzled by is why you support 
height in pixels units and not height in percentage units?
You need to log in before you can comment on or make changes to this bug.