Forums
View unanswered posts | View active topics It is currently Thu May 23, 2013 10:11 pm



Reply to topic  [ 4 posts ] 
 css3pie integration with LESSCSS 
Author Message

Joined: Mon Dec 05, 2011 3:01 pm
Posts: 2
Post css3pie integration with LESSCSS
I can't get css3pie to work within a .less (lesscss) file - css3pie works perfectly when I use a .css file.

I'm working off of a local MAMP stack and have updated mime.type to recognize .htc files. Problem exists in both ie7 and ie8, tested in vmware fusion (vml appears to be working).

It appears I'm not alone with this concern (see http://css-tricks.com/forums/discussion ... less.js/p1), but it also looks like others have successfully integrated the two. Any tips?

HTML and LESSCSS code here:
http://pastebin.com/DSaUmi0r
.less code is basically straight css just to see if I can get 'behavior' call to stick.

Can anyone offer suggestions as to a fix?


Mon Dec 05, 2011 3:14 pm
Profile

Joined: Mon Dec 05, 2011 3:01 pm
Posts: 2
Post Re: css3pie integration with LESSCSS
In case it helps anyone with a similar problem - I've decided to rely on the .css file generated by less.app (I'm on a mac) and won't call less.js in my HTML. I wouldn't be using less.js on the production server anyway, so it comes to the same.


Tue Dec 06, 2011 9:50 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: css3pie integration with LESSCSS
Even though you've moved away from less.js, I'm curious if you were calling the behavior with a relative path like url(path/to/PIE.htc) -- there may be a bug in less.js where it rewrites all relative URLs as if they were relative to the CSS file, but since behaviors are relative to the HTML file that breaks. If you use an absolute URL like url(/path/from/root/to/PIE.htc) I wonder if it would work.

(Similar libraries such as Selectivizr and Prefixfree have had to fix this issue in the past as well, so I wouldn't be surprised.)


Wed Dec 07, 2011 9:48 pm
Profile

Joined: Thu Jan 19, 2012 11:05 am
Posts: 3
Post Re: css3pie integration with LESSCSS
I have noticed that LESS Alters the URL path to the PIE.htc to keep it in relation to the css file rather than the html as is usually the case when referencing it, keep this in mind and it fixes the problem letting you use both together.


Tue Mar 13, 2012 5:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 0 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.