Forums
View unanswered posts | View active topics It is currently Thu Aug 28, 2014 3:09 am



Reply to topic  [ 5 posts ] 
 background-size blowing error in IE7 
Author Message

Joined: Thu Aug 08, 2013 10:17 am
Posts: 4
Post 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!


Thu Aug 08, 2013 10:32 am
Profile

Joined: Thu Aug 08, 2013 10:17 am
Posts: 4
Post 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. :)


Thu Aug 22, 2013 9:01 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: background-size blowing error in IE7
Are you able to tell what value it's trying to assign on that line?


Fri Aug 23, 2013 3:23 pm
Profile

Joined: Thu Aug 08, 2013 10:17 am
Posts: 4
Post 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.


Tue Sep 03, 2013 2:09 pm
Profile

Joined: Thu Aug 08, 2013 10:17 am
Posts: 4
Post Re: background-size blowing error in IE7
Thought I'd give this one a bump - any ideas?


Thu Sep 12, 2013 9:46 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.