Re: CSS Validator complains about background-color -- but it's set!

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: CSS Validator complains about background-color -- but it's set!

pete (Bugzilla)-2

> On 11/6/05, Jukka K. Korpela <[hidden email]> wrote:
>> On Sun, 6 Nov 2005, Cyber Dog wrote:
>> > The short answer is, even though 'transparent' is valid css, the
>> > validator has been made to complain about it because a couple people
>> > feel its bad style to use it rather than a set color.

The validator isn't _complaining_. It's warning you. There is a HUGE

If, for example, you get on your bicycle and pedal out to the street and
I say to you "Hey, your brakes look like they might be a little loose.
Be careful!", that is a warning.

If I say "You put that bike together backwards. And the chain is
missing", THEN I am complaining about validation.

Anyways, correct me if I'm wrong but doesn't the validator say
"Congratulations! This document validates as CSS!" right there above all
the warnings?

A more accurate statement might be:
"'background-color:transparent' is (at the moment) perfectly valid CSS
and you should feel free to use it despite the warnings, which serve to
make CSS beginners (who are most likely religiously using the validator)
aware of the inherit dangers of specifying a color for a potentially
unknown background color."

I think a more notable solution than creating two kinds of warnings in
the validator or what-have-you would be to DEVELOP A BETTER WARNING


FN:pete scott
EMAIL;TYPE=internet,pref:[hidden email]