Posted by Benjamin Niemann on 12/29/05 16:00
grant@grantdonovan.co.uk wrote:
> Is it possible to somehow check for missing styles in document. I am
> thing that if a webpage loads and the style is not in the stylesheet
> then something happens. Warning on the page for example.
Such a check does (generally) not really make sense. Both the ID and the
CLASS attributes can be used for other purposes than CSS.
Perhaps there is a tool that performs such a check - but the result would
only be useful to people who restricts themselves to have at least one
matching rule in their CSS for every class and id in the document.
CSS is about the (mostly visual) rendering of a document. Programmatically
checking the CSS for correctness (= produces the intended result) is close
to impossible. So you're left with manual testing anyway - if there is a
rule 'missing' the document will not look (or sound) as you intended. I
can't think of a useful way that some piece of software could free you from
such manual checks.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|