Forums
View unanswered posts | View active topics It is currently Mon Jun 17, 2013 11:58 pm



Reply to topic  [ 5 posts ] 
 IE 7 & 8 bug box-shadow Illegal input string in Vector2D 
Author Message

Joined: Tue Dec 13, 2011 10:31 am
Posts: 3
Post IE 7 & 8 bug box-shadow Illegal input string in Vector2D
Hi

I've been using csspie for a while and it's a great piece of kit.

I was having an unusual amount of trouble with a box-shadow in ie 7 & 8 and think I've found a bug with negative box-shadow spreads.

Sadly I can't show it to you in the wild but here's my set-up and hopefully you can replicate.

Code:
.box {
   position:relative;
   float: left;
   margin-left: -10px;
   width: 620px;
   height: 99px;
   z-index: 20;
   
   background: #d34a55; /* Old browsers */
   background: linear-gradient(top, #d34a55 0%,#ca013a 100%); /* W3C */
   /*loads of browser specific gradients*/
   -pie-background: linear-gradient(top, #d34a55 0%,#ca013a 100%); /*PIE for css3 in ie 6-9*/
   
   -moz-box-shadow: 0 4px 2px -2px #574e5a;
   -webkit-box-shadow: 0 4px 2px -2px #574e5a;
   box-shadow: 0 4px 2px -2px #574e5a;
   
   behavior: url(PIE_uncompressed.htc);
}


I get an error in the IE console:

Code:
SCRIPT33426: Arg: Illegal input string in Vector2D
PIE_uncompressed.htc, line 3431 character 25


or in the compressed version

Code:
SCRIPT33426: Arg: Illegal input string in Vector2D
PIE.htc, line 76 character 358


which appears to relate to the values being passed to fill['focusposition']

Adding the following at line 3417 of PIE_uncompressed.htc fixes the problem, but I can't guarantee the behaviour remains unchanged.

Code:
               
   totalW = (isFinite(totalW) && totalW != 0) ? totalW : 1;
   totalH = (isFinite(totalH) && totalH != 0) ? totalH : 1;


thanks


Tue Dec 13, 2011 10:58 am
Profile

Joined: Wed Dec 14, 2011 7:30 am
Posts: 1
Post Re: IE 7 & 8 bug box-shadow Illegal input string in Vector2D
Hi!

I've just run into the same problem and adding those two lines to the uncompressed file seems to solve the problem, however where should I add those lines to the compressed one, or how can I compress the original HTC file?

Thanks!


Wed Dec 14, 2011 7:32 am
Profile

Joined: Tue Dec 13, 2011 10:31 am
Posts: 3
Post Re: IE 7 & 8 bug box-shadow Illegal input string in Vector2D
I'm not sure what the files were compressed with, so for the moment I'm using the uncompressed.

Sorry.


Wed Dec 14, 2011 10:10 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1401
Post Re: IE 7 & 8 bug box-shadow Illegal input string in Vector2D
Building from the source code will give you a compressed version. See http://css3pie.com/documentation/buildi ... om-source/

You'll want to start from the 1.0beta5 tag as the current master code is in flux.


Wed Dec 14, 2011 1:34 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1401
Post Re: IE 7 & 8 bug box-shadow Illegal input string in Vector2D
Bug ticket here: https://github.com/lojjic/PIE/issues/188

@thelastshadow: Please see my comment there. I'm unable to reproduce the issue in beta5 with the CSS you provided, so while there is now a check in place that should *theoretically* prevent the error, I'm unable to actually verify it. Please help me out by providing a complete testcase that triggers the issue. Thanks!


Sat Dec 31, 2011 3:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 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.