Forums
View unanswered posts | View active topics It is currently Thu Apr 24, 2014 5:00 am



Reply to topic  [ 3 posts ] 
 css3pie and modernizr 
Author Message

Joined: Thu May 26, 2011 7:59 am
Posts: 4
Post css3pie and modernizr
Hi all,

is css3pie.htc loading from modern Browser too and for this is it a good way to exclude it by modernizr tags?

modernizr generate body-classes for supporting and not supporting features like boxshadow, but i think every man who cares about webdesign already knows it:
http://www.modernizr.com/

I use it in combination like this:

Code:
.boxshadow .greyButton {
  -moz-box-shadow:0 0 1px #777;
  -webkit-box-shadow:0 0 1px #777;
  box-shadow:0 0 1px #777;
}
.no-boxshadow .greyButton {
  behavior: url(css/PIE.htc);
}


Or will be the behavior line ignored completly by modern browser and i can save the extra code?

Thanks for any kind of feedback!

p.s. plz excuse my bad english


Mon Nov 14, 2011 7:11 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
Post Re: css3pie and modernizr
The behavior file will never be downloaded by non-IE browsers.

However, it *will* be downloaded by all IE versions. If all you are using is box-shadow then it's a decent idea to use the .no-boxshadow selector, as that will prevent it being downloaded in IE9 which supports box-shadow natively. If you want to use linear-gradient or border-image then you'll of course want to allow IE9 to download it.


Mon Nov 14, 2011 9:20 am
Profile

Joined: Thu May 26, 2011 7:59 am
Posts: 4
Post Re: css3pie and modernizr
Thanks for the information!


Tue Nov 15, 2011 3:11 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users 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.