Closed Bug 283014 Opened 19 years ago Closed 19 years ago

valign in col tag is ignored

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 915

People

(Reporter: russell.brown, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If you put a valign in a col tag, it is ignored by Firefox (and is okay in IE). 
This is shown in the example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"				 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<table border="1">
  <colgroup>
    <col valign="top" />
    <col />
    <col />
  </colgroup>
  <tr>
    <td>I should be at the top - but I'm not</td>
    <td>I am always at the top<br /><br /><br /></td>
    <td>I am in the middle - default middle alignment</td>
  </tr>
</table>
</body>
</html>

A workaround is to add a <tbody valign="top" /> after the colgroup definition.

Reproducible: Always

Steps to Reproduce:
1. View the html as described in the details in the corresponding browser
2.
3.

Actual Results:  
1st column appears at the same alignment as the last column (provided middle is
the default alignment)

Expected Results:  
1st column should be aligned with the middle column, placing the text at the top
of the cell. Confirmed as the behaviour of IE 6.0.2800.1106 (SP1).

According to the HTML 4.0 spec (also supported by the XHTML1.0 spec):

<!ELEMENT COL      - O EMPTY>
<!ATTLIST COL
  %attrs;
  span        NUMBER         1
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;>

where %cellvalign is:

<!ENTITY % cellvalign "valign     (top|middle|bottom|baseline) #IMPLIED">
Attached file testcase

*** This bug has been marked as a duplicate of 915 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Apologies.. Didn't search on the core component, only on firefox bugs.

*bows head in shame*
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: