CSS3 PIE Forums

W3C CSS Validation error
Page 1 of 1

Author:  zimbo99 [ Mon Jul 14, 2014 11:21 am ]
Post subject:  W3C CSS Validation error

This code
.sf-shadow ul {
   -moz-box-shadow: 4px 4px 4px #808080;
   -webkit-box-shadow: 4px 4px 4px #808080;
   box-shadow: 4px 4px 4px #808080;
   behavior: url(/PIE.htc);

gives a
Property behavior doesn't exist : url(/PIE.htc)
W3C validation error: is this expected and is there a way around it?

Author:  jason [ Thu Jul 17, 2014 10:58 am ]
Post subject:  Re: W3C CSS Validation error

Yes, it's expected because behavior is an IE-specific property.

I've never found validation of CSS very useful personally, because the rules for handling unknown properties are so clearly defined and consistently implemented that it doesn't really matter.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group