Closed Bug 293870 Opened 20 years ago Closed 20 years ago

css border-collapse moves table up/left 1px, stops top/left border render & can create scrollbars in a div for no reason

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 155955

People

(Reporter: sean.hebden, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

When using a table with border-collapse, the table is shifted up and left one
pixel and the top/left border is no longer displayed. If the table is
constrained within a fixed size div with overflow set to auto. When the table is
smaller than the div everything renders fine until you add border-collapse to
the table, it then adds scroll bars for no apparent reason. Depending on the
table size you may get a vertical or horizontal scrollbar or both. See url
example. Either way they should not be there, I think it is because the table
has shifted 1 pixel up and left.

Reproducible: Always

Steps to Reproduce:
1.View the source of the url I have linked. 
2.Create a table, note its location
3.apply the style border-collapse:collapse
4.see the table move left & up 1 px.
5.do the same but restrain it in a div (see link before & after.

Actual Results:  
The table shifts to the left and up. When restrained within a div scrollbars appear.

Expected Results:  
The table should stay where it is, no scrollbars should appear.
With a nightly trunk I dont see any scrollbars, I see the border issue though. 
Component: General → Layout: Tables
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → Trunk
yep, remove the doctype and things will be different ....


*** This bug has been marked as a duplicate of 155955 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 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: