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

Could PIE.htc be replaced by a css expression?
http://css3pie.com/forum/viewtopic.php?f=4&t=2112
Page 1 of 1

Author:  xem [ Wed Sep 04, 2013 3:46 am ]
Post subject:  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!

Author:  jason [ Wed Sep 11, 2013 1:38 pm ]
Post subject:  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.

Author:  xem [ Thu Sep 12, 2013 1:45 am ]
Post subject:  Re: Could PIE.htc be replaced by a css expression?

Oh, right. That's rude.

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