background-size-polyfill icon indicating copy to clipboard operation
background-size-polyfill copied to clipboard

Doesn't work...

Open TakanashiOuken opened this issue 11 years ago • 9 comments
trafficstars

For a second it worked in IE8, but it doesn't work anymore after a reload. Could this be because the div with background-size is position absolute?

TakanashiOuken avatar Nov 25 '13 07:11 TakanashiOuken

CSS positioning should not affect it... Is there a test link we can view?

jefferyto avatar Nov 26 '13 05:11 jefferyto

I had this issue as well. Resizing the browser would cause the polyfill to appear. I triaged by replacing the call to handlePropertychange at the end of the init() function with handleResize.

davidcroda avatar Jan 03 '14 15:01 davidcroda

@davidcroda can you post a link or jsFiddle with a minimal test case?

jefferyto avatar Jan 03 '14 15:01 jefferyto

I am having a similar issue. Resizing the browser seems to make the images appear. http://composedcreative.com/clients/esteelauder/makeup/

marissalerer avatar Jan 22 '14 22:01 marissalerer

Same issue as well - Images appear on window resize, but not on first page load. My container's are js-calculated, becuase it's a fullscreen slideshow - maybe that's the problem? How can I "force" the polyfill to activate when everything's calculated?

thomasduenser avatar Jan 28 '14 09:01 thomasduenser

I have the same issue. Images appear after a window resize only.

codeofsumit avatar Jan 28 '14 09:01 codeofsumit

@marissalerer Sorry I haven't had time to look at your page yet, will try to in the next few days. Would be very helpful if you can reduce it down to a minimal test case.

@thomasduenser Does this help? https://github.com/louisremi/background-size-polyfill/issues/31#issuecomment-27583864

@Sumit8 Are you also calculating the container size using JS like @thomasduenser ?

jefferyto avatar Jan 28 '14 09:01 jefferyto

Everyone else: Please comment here only if you are experiencing the same issue as the OP:

For a second it worked in IE8, but it doesn't work anymore after a reload.

If not, please open a new ticket (with a test case / jsFiddle) - thanks!

jefferyto avatar Jan 28 '14 09:01 jefferyto

@marissalerer Looks like your site has two references to the polyfill (/lauder/backgroundsize.min.htc and /backgroundsize.min.htc), but both return 404... Was this a recent change?

jefferyto avatar Feb 04 '14 16:02 jefferyto