Quote:
Originally Posted by theducks
AFAIK the rule is that unsupported styles must simply be ignored.
(ADE is great at that  , they Ignore the whole stylesheet)
I will take that as the style has not been properly defined  (orphaned) should be ignored, thus validate.
|
Aren't you mixing CSS and XHTML?
I think in this thread we are talking about "unused styles" when they are defined in the CSS stylesheet, but they never actually apply to anything. And we are using "orphaned classes" when a class is used in the XHTML file, but there's no defined style that applies to this class.
The rule about ignoring unknown/unsupported styles is, as far as I know, a CSS one, and it refers to properties and values, so if you use "margin_top" instead of "margin-top", it is unknown and ignored.
Again, as far as I know, there is no rule that says that an orphaned class (a class used in XHTML but with no specific style defined for it) is wrong. Maybe in XML it is, but in XHTML? How would you apply a custom stylesheet to any document if you don't know all the class names used? (An XHTML could use <p> for its paragraphs, another <p class="text"> and another <p class="normal">, all of them should work fine if you just define a style for "p" in the CSS, no need for "p.text" and "p.normal".)