valid css using an htc

admin

Administrator
Staff member
I'm getting:

Line: 0 Context : li
Property behavior doesn't exist : url(/styles/IEFixes.htc)

while trying to validate my css. Is there a known issue with htcs that won't allow validation success?We'll need to see the complete CSS and HTML. I have a feeling that you are applying the url() property improperly. But we can't be sure until we see the code.li {
behavior: url('/styles/IEFixes.htc');
}

all other css is valid and html has passed xhtml strict.

note: I've tried single quotes, double quotes and no quotes all with the same outcome.Behavior extensions in CSS seem to be a part of the working draft for CSS 3.0. Try validating your CSS file as CSS 3.0 and see if it passes then. The default CSS version at the W3 site is CSS 2.0, which does not have CSS behaviors.you had me excited but nope, same thing:


Line: 0 Context : li
Property behavior doesn't exist : url(/styles/IEFixes.htc)

again tried url arguement with all flavors of quotes.This was Vladdy's brain child, yes? Well, even if it wasn't, you could PM him, 'cause he knows all about this, since he implements it in his pure CSS menu.behavior, being IE-only feature, does invalidate CSS. I gave a reason why I do not find it important in the last post of this thread:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=29193This">http://forums.webdeveloper.com/showthre ... =29193This</a><!-- m --> is a CSS Level 3 recommendation and if you try to validate the CSS make sure you are validating with the CSS Level 3 profile.

This was actually mentioned in CSS Level 2 but never became a recommendation.
 
Back
Top