[MARGIN-C] margin-bottom wrong when hovering over block with fixed background

RESOLVED WORKSFORME

Status

()

Core
Layout
P3
normal
RESOLVED WORKSFORME
16 years ago
15 years ago

People

(Reporter: Peter Schneider-Kamp, Assigned: Marc Attinasi)

Tracking

({testcase})

Trunk
Future
x86
Linux
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020819
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020819

When displaying a set of links as block (a menu), specifying a fixed
background image results in a false marging-bottom making the menu
move when you move the mouse up and down over the menu (hover).

In the example, setting margin-top instead of margin-bottim OR
setting margin-bottom to 0px in div.menu a:hover solves this.

So, it appears that only margin-bottom is wrong. My guess is that
the start of the margin is calculated relative to the margin-bottom
of div.menu a -- this would explain why the actual margin sometimes
adds up to 10+10 = 20px.

Reproducible: Always

Steps to Reproduce:
1. Load the example from http://nowonder.de/menubug.html
2. Move the mouse from the top of the menu to the bottom of the menu slowly.
3. Move the mouse back to the top slowly.

Actual Results:  
The menu items "expanded" and "contracted", i.e. the margin changed.

Expected Results:  
The menu should be static. Like the version that uses margin-top instead
of margin-bottom at http://nowonder.de

Comment 1

16 years ago
Created attachment 96187 [details]
Testcase

Comment 2

16 years ago
Confirming bug, 2002-08-20-08 trunk Linux.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Summary: margin-bottom wrong when hovering over block with fixed background → [MARGIN-C] margin-bottom wrong when hovering over block with fixed background

Updated

16 years ago
Priority: -- → P3
Target Milestone: --- → Future
This worksforme in a current build...  Mats, are you still seeing this?

Comment 4

15 years ago
WORKSFORME,
2003-04-30-22 trunk Linux.
2003-04-29-04 trunk Win98.
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.