Forums
View unanswered posts | View active topics It is currently Sun Aug 31, 2014 4:19 am



Reply to topic  [ 3 posts ] 
 Could PIE.htc be replaced by a css expression? 
Author Message

Joined: Thu Apr 07, 2011 3:23 am
Posts: 73
Post Could PIE.htc be replaced by a css expression?
The modular architecture of PIE 2 made me wondering if there could be a way to replace in CSS files:

.pie { behavior: url(PIE.htc); }

with

.pie { behavior: expression(/* insert some clever code here doing the same thing as PIE.htc */); }


This could save an HTTP request and prevent problems such as HTC invalid mime-type and path relative to HTML.

But I don't know enough about CSS expressions to do it alone, I just know they can do amazing things, like min-max/width-height, or pure CSS PNG fix on old IEs... so why not trying to load an external JS file and call the appropriate functions when the element is created or deleted?

What's your opinion?

Thanks!


Wed Sep 04, 2013 3:46 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: Could PIE.htc be replaced by a css expression?
I fooled around with that idea briefly a while back. The thing that kills it is that CSS expressions are not supported in IE8 standards mode and later.


Wed Sep 11, 2013 1:38 pm
Profile

Joined: Thu Apr 07, 2011 3:23 am
Posts: 73
Post Re: Could PIE.htc be replaced by a css expression?
Oh, right. That's rude.


Thu Sep 12, 2013 1:45 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

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