Skip to main content

Bug Tracker

Side navigation

#10359 closed bug (cantfix)

Opened September 28, 2011 02:10AM UTC

Closed October 07, 2011 12:52AM UTC

Setting css overflow property to HTML tag, reloading all the swf's on the page

Reported by: jatinder.assi@demandmedia.com Owned by: jatinder.assi@demandmedia.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
Description

Setting the css overflow property using jQuery dynamically after the DOM is ready, forces the page to load all the swf's.

Here is a code sample:

jQuery('html').css('overflow','auto');

Attachments (0)
Change History (4)

Changed September 28, 2011 02:19AM UTC by jatinder.assi@demandmedia.com comment:1

In Firefox 6, setting the css overflow property to html/body using jQuery dynamically after the DOM is ready, forces the page to load all the swf's.

Here is jQuery call:

jQuery('html').css('overflow','auto');

Changed September 28, 2011 03:57AM UTC by dmethvin comment:2

owner: → jatinder.assi@demandmedia.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

For this case, we would also want to know whether the problem occurs in a bare-DOM (no jQuery) situation, e.g., document.documentElement.style.overflow = "auto"

Changed September 28, 2011 07:25PM UTC by jatinder.assi@demandmedia.com comment:3

status: pendingnew

I did some more testing and what I found was that changing any CSS property to any DOM element, repaints all the swf objects inside that DOM element.

This happens both in bare-DOM and jQuery in Firefox(6,7) on Win7 and Mac.

Here is the jsFiddle test link: http://jsfiddle.net/FrKyN/90/

In my test case, I am dynamically changing the CSS property for the "html" tag and it will repaint all the swf's in that HTML doc. For testing purpose, I am using a single youtube embed code to show this weird behavior.

Hope this helps. Let me know if you need more code samples to prove this scenario.

Changed October 07, 2011 12:52AM UTC by dmethvin comment:4

resolution: → cantfix
status: newclosed

Given the test case, this seems beyond the reach of jQuery's heroism and should be reported to Mozilla.