Closed Bug 263310 Opened 20 years ago Closed 20 years ago

Margin collapses on the root element when focusing / clicking link

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: martijn.martijn, Unassigned)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041005 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041005 Firefox/0.9.1+

This only happens on recent 1.8a builds.
I'll attach a testcase.

Focusing the link in the absolute positioned div in that testcase, makes the
border of the hmtl element collapse to just under the <p> element. This is not
good, because that <p> element has a margin-bottom of 200px.
Focusing one of the other two links ("Home" or "Disruptive Innovations") makes
the bug go away.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Attached file Testcase
Blocks: 261196
Mozilla Windows Trunk Nightly Build Regression Window
Pass: 2004071609
Fail: 2004071808
Keywords: regression
Summary: Margin collapses on the root element when focusing link → Margin collapses on the root element when focusing / clicking link
It only happens when you directly focus that link. If you focus another link
first I can not reproduce it.
Testcase Behavior changed: Mozilla Suite Nightly on Windows XP
Fail: 2005030706
Pass: 2005030806
Ok, this bug seems to be indeed fixed somehow.
I can still see a small issue with it perhaps, though.
The black focus outlines shifts a bit (1 pixel) when focusing a link.
I'll file a new bug about that.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
I filed bug 287596 for that issue.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: