Closed Bug 129981 Opened 22 years ago Closed 20 years ago

Manipulating opacity seems to affect block's margins

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: porter, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

(I'm not sure if this should be a style issue or an event handling one, but the
latter seems more proper.)

The sample URL points to a page containing two sets of links whose display has
been changed to "block". The first set is fine; however, mousing over the links
in the second set from top to bottom causes the elements to push apart, and
mousing back up from the bottom causes them to contract again. The only
difference between the two sets are two CSS rule sets that apply to the links in
the second set to manipulate the links' opacity with "-moz-opacity."

I've tested this with several of the latest nightlies (currently today's:
20020310). I will double check, but I don't believe this was happening in the
0.9.8 release.
I've checked with the 0.9.8 release on WinNT, and I was right -- it does not
exhibit this behavior.
Confirming in 0.9.9 on WinME. 
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is still a problem in recent nightlies (2002040803).
QA Contact: madhur → rakeshmishra
I may have tracked down more specific behavior on this bug. I believe what's
happening is that manipulating the opacity of an element with the :hover
pseudo-class is causing that element's bottom margin not to collapse with the
following element's top margin, for some reason.

I've updated the referenced URL to show a third case with larger top and bottom
margins on the elements, and you can see that the jump is much larger --
basically doubling the space between the elements.
This problem is still present in the current nightly build (2002081004).
I had implemented a temporary fix for this problem on my home page, but the 1.2a
release now breaks my fix. Will post more once I've had a chance to debug a
little better.
QA Contact: rakeshmishra → trix
->Layout.
Component: Event Handling → Layout: Block & Inline
er, really this time
Assignee: joki → block-and-inline
QA Contact: trix → ian
I was about to resummarize this bug as "Changing block's opacity temporarily
doubles effect of margin-bottom", but I noticed that in my testcase, changing
the h3's opacity also makes the h3 move up a pixel or two.
Just removing the "on hover" from the summary, since it seems pretty clear now
that it's any sort of manipulation of the opacity that causes this problem.
Summary: Manipulating opacity on hover seems to affect block's margins → Manipulating opacity seems to affect block's margins
Keywords: testcase
Priority: -- → P3
*** Bug 193411 has been marked as a duplicate of this bug. ***
OS: Windows 98 → All
Hardware: PC → All
Fixed by checkin for bug 257612 
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Depends on: 257612
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: