Closed Bug 283889 Opened 20 years ago Closed 20 years ago

Whitespace after an element causes that element's bottom margin to double when using moz-opacity with :hover

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: seeders, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

When there's whitespace following an element (i.e. "<p>moo</p> ") and that
element has moz-opacity < 1 and on hover moz-opacity = 1, the bottom margin is
doubled.

Reproducible: Always

Steps to Reproduce:
1. Use the following CSS: p{-moz-opacity:.5;} p:hover{-moz-opacity:1;}
2. Use this markup: <p>Para 1</p> <p>Para 2</p><p>Para 3</p>
3. Hover over Para 1

Actual Results:  
Because of the whitespace after Para 1, it's bottom margin is doubled.
But, because Para 3 immediately follows Para 2, hovering over Para 2 works fine.

Expected Results:  
Changed the opacity, but not the margins.
Attached file Reproduction of bug
Already fixed on the trunk (1.0.1 is still the same branched core rendering code
from last spring).
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: