Closed Bug 376814 Opened 18 years ago Closed 18 years ago

border-collapse:collapse and border-style:none still show a border if border="1" is set

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 167496

People

(Reporter: duncan.loveday, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a4pre) Gecko/20070331 Minefield/3.0a4pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a4pre) Gecko/20070331 Minefield/3.0a4pre Given a table declared with border="1", with Firefox it appears impossible to completely turn off the border via CSS even using border-collapse:collapse and border-style:none on both the table and the table cells. This is not the case with IE6. Reproducible: Always Steps to Reproduce: 1. Open the attached HTML test case. 2. 3. Actual Results: A table is shown with a border between the cells. Expected Results: The table should have no borders In my scenario I want to have two stylesheets, one in which the table borders are as per the default for whatever browser is being used and one in which the table borders are disabled. This seems impossible to achieve in Firefox since one cannot specify border="1" without breaking case 2. Therefore, one has to specify border="0" and then explicitly define the border style for case 1 which should not be necessary and is problematic since default border styles might vary from browser to browser.
Attached file test HTML source
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: