Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Cascade, @import, and validation


dingman - 1:17 am on Dec 31, 2002 (gmt 0)


I've got a page with a <link>ed main stylesheet immediately followed by an @imported one. It works in the browsers just fine, but if I try to validate the page with the w3c CSS validator, the @import is completely ignored. I can check it separately, and the @imported sheet validates. I know my <style...> tag is fine, because if I comment out the <link...> the validator finds the @imported sheet for the page just fine. What gives?

Is the w3c interpreting "CSS2 user agents must ignore any '@import' rule that occurs inside a block or that doesn't precede all rule sets" in the standard [w3.org] to mean that at most one style-sheet can be imported, unless somehow the first one contains no rule sets? What about @media foo { rules for displaying on a foo; } @media bar { but bars are entirely different; }?


Thread source:: http://www.webmasterworld.com/css/475.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com