Previous Message
Next Message

validating CSS

Sent by David Dorward on 27 August 2009 11:11


2009/8/27 jeffrey morin [EMAIL-REMOVED]>:
> I was discussing some CSS techniques the other day and someone brought up a
> point of a certain "fix" that I use not validating in the CSS validator. I
> have never really been overly concerned with validating my stylesheets as
> long as the html was good. Is there a certain benefit to validating your CSS

The benefits are the same as for HTML:

* If something goes wrong, you know it isn't a syntax error

* A syntax error that doesn't exist can't cause a problem in a browser
outside your test suite

* When a syntax error does cause a problem, the validator will help
you find it without flooding the report with lot of errors you decided
you don't care about

* When someone else runs a validator over your code, their opinion
won't be lowered by a collection of error messages

* When someone else joins your team or takes over the project, they
won't have to learn your stylesheet language, they can just use CSS.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: