IFRAME scrolls back at top when changing its container opacity from partial to full opacity

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
10 years ago
7 years ago

People

(Reporter: Guy Rouillard, Unassigned)

Tracking

2.0 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-09-15])

Attachments

(1 attachment)

480 bytes, application/xhtml+xml
Details
(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

When a script changes opacity of a DIV element from partial to full opacity (or from full to partial opacity), the inline frames (IFRAME) within it are refreshed and scrolled back to the top of their content if they were scrolled down.

Reproducible: Always

Steps to Reproduce:
1.In an empty XHTML document, add the following code 
	- <div id="my-div"><iframe src="http://www.mozilla.org" style="width: 250px; height: 250px;"></iframe></div><button onclick="document.getElementById('my-div').style.opacity=0.5">Click me to make it translucent</button><br /><button onclick="document.getElementById('my-div').style.opacity=1">Click me to make it opaque</button>
2. Scroll down IFRAME contents.
3. Click on first button.
4. Scroll down IFRAME contents.
5. Click on second button.
Actual Results:  
The IFRAME contents are scrolled to their topmost position.

Expected Results:  
The scrolling position should not change.
(Reporter)

Comment 1

10 years ago
Created attachment 314146 [details]
Sample test case

Updated

10 years ago
Attachment #314146 - Attachment mime type: text/html → application/xhtml+xml

Comment 2

10 years ago
WFM using a Mac trunk build.  On branch, this is probably a result of bug 254144.
Reporter, are you still seeing this issue with Firefox 3.6.x or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-09-15]
Version: unspecified → 2.0 Branch
(Reporter)

Comment 4

7 years ago
Tested and found this issue to be fixed in Firefox 3.6.x.

Thanks a lot,
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED

Updated

7 years ago
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.