border style ignores <col span>

RESOLVED INVALID

Status

()

Core
CSS Parsing and Computation
RESOLVED INVALID
14 years ago
14 years ago

People

(Reporter: Paul Arzul, Assigned: dbaron)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
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.
(Reporter)

Comment 1

14 years ago
Created attachment 146808 [details]
testcase

testcase
(Assignee)

Comment 2

14 years ago
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>
(Reporter)

Comment 3

14 years ago
(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.
(Reporter)

Comment 5

14 years ago
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
(Assignee)

Updated

14 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.