CSS3 PIE Forums
http://css3pie.com/forum/

background-size blowing error in IE7
http://css3pie.com/forum/viewtopic.php?f=6&t=2101
Page 1 of 1

Author:  creativetech [ Thu Aug 08, 2013 10:32 am ]
Post subject:  background-size blowing error in IE7

PIE works great to apply background-size to IE8. However, in IE7 PIE gives me this error:
Quote:
Error: Arg:Ilegal input string in Vector2D
Line: 2274
Char: 21

Screenshot of the line of code that is causing the error:
Attachment:
IE7_Error.png [31.8 KiB]
Not downloaded yet

I am using PIE_IE678_uncompressed.js

Unfortunately, I don't have a place for a public test page, but here is the code that I used:

Code:

<div id='container'><div id='test'></div></div>

<script type="text/javascript">

var containerDiv = document.getElementById('container')
containerDiv.width = 150 + 'px';
containerDiv.height = 45 + 'px';
containerDiv.style.overflow = 'hidden';

var testDiv = document.getElementById('test');
testDiv.style.backgroundImage = 'url(http://css3pie.com/forum/styles/serenity/imageset/logo.png)'
testDiv.style.width = 150 + 'px';
testDiv.style.height = 45 + 'px';
testDiv.style.position = 'relative';
testDiv.style.background = testDiv.style.backgroundImage + " no-repeat 50% 50%";
testDiv.style.backgroundSize = 'contain';
testDiv.style["-pie-background"] = testDiv.style.backgroundImage + " no-repeat 50% 50% / contain";
PIE.attach(testDiv);

</script>


Any insights? Thanks in advance!

Author:  creativetech [ Thu Aug 22, 2013 9:01 am ]
Post subject:  Re: background-size blowing error in IE7

Thought I'd give this one a bump. Can anyone help me out?

This is the last little piece of getting my project to be cross-browser compatible. :)

Author:  jason [ Fri Aug 23, 2013 3:23 pm ]
Post subject:  Re: background-size blowing error in IE7

Are you able to tell what value it's trying to assign on that line?

Author:  creativetech [ Tue Sep 03, 2013 2:09 pm ]
Post subject:  Re: background-size blowing error in IE7

Thanks for looking into this.

The code is trying to assign Infinitypt,Infinitypt to fill[ name ] on that line.

Author:  creativetech [ Thu Sep 12, 2013 9:46 am ]
Post subject:  Re: background-size blowing error in IE7

Thought I'd give this one a bump - any ideas?

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/