Closed Bug 241370 Opened 20 years ago Closed 20 years ago

border style ignores <col span>

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: habere, Assigned: dbaron)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8a) Gecko/20040421
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8a) Gecko/20040421

from: http://www.w3.org/TR/html4/struct/tables.html#edef-COL

<blockquote>the COL element shares its attributes with all the columns it
spans.</blockquote>

i think this means that the border style applied to a table with a spanning
column should have the style applied to the entire spanned column, *not* to each
of the columns it spans.

Reproducible: Always
Steps to Reproduce:
(validated) testcase attached:

Style

table
{
  border-collapse: collapse;
}

col
{
  border-right: solid;
}


Markup

<table>
  <colgroup>
    <col span="2">
  </colgroup>

  <tr>
    <td>First column</td>
    <td>Second column</td>
  </tr>
</table>

Actual Results:  
both columns have the border style applied.


Expected Results:  
only the entire spanned column should have the style applied. (appears to render
correctly in opera 7.23)


tested in moz 1.6, and 1.8a nightly 2004/04/22.
Attached file testcase
testcase
I would interpret the sentence you quote the opposite way -- that Mozilla's
behavior is correct.

Furthermore, what you want can be accomplished by styling the colgroup, so why
make col with span work this way?
Summary: border style ignores <col span> → border style ignores <col span>
(i was aiming for the simplest testcase -- i had a rather complex table.)
> <blockquote>the COL element shares its attributes with all the columns it
> spans.</blockquote>

Computed style properties are NOT attributes.
thanks boris -- i think i'm wrong. quoting brian wilson:

"Using the SPAN element does not actually DEFINE a column grouping, it is rather
a method used to more easily specify shared column attributes."

http://www.blooberry.com/indexdot/html/tagpages/c/col.htm
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: