W3C home > Mailing lists > Public > www-validator-css@w3.org > April 2005

Re: filter: alpha errors

From: Etan Wexler <ewexler@stickdog.com>
Date: Wed, 13 Apr 2005 08:38:30 -0400
Message-ID: <425D12C6.3010204@stickdog.com>
To: William Y <wyang@tjhsst.edu>, W3C CSS-Validator list <www-validator-css@w3.org>

William Y (presumably William Yang) wrote to 
<mailto:www-validator-css@w3.org> on 12 April 2005 in “filter: alpha 
errors” (<mid:004101c53fc6$66cbbd70$06244d0c@oemcomputer>):

> Is 'filter: alpha(opacity=85);' considered valid CSS?

It is not considered valid CSS. More importantly, it is not valid CSS.

The specifications are there for the reading. Given the inconvenience of 
wading through each specification, I suggest using a search service. For 


> Right now, the CSS
> validator reads this as a parse error, but reads 'filter: alpha' without
> parameters fine.

In other words, given { E{filter:alpha} }, the validator responds as 


         * Line : 1 property filter does not exist for
           this profile, but is validated conforming to
           another profile

     Valid CSS information

         * E {
               * filter :

The lack of a value in the output is a clue that there is a bug at work.

> Do I have bad code, or is this a bug in the validator?

There is a bug in the validator. Aside from that, you have an invalid 
style sheet. The style sheet’s violation of standards accomplishes a 
particular effect in a particular user agent. Said user agent (Microsoft 
Internet Explorer) overwhelmingly dominates the field of traditional Web 
browsers. Whether you have “bad code” is a judgment “depending on your 
politics” (borrowing Leonard Cohen’s turn of phrase).

P.S. I, too, came for the sports.

Etan Wexler.
Received on Wednesday, 13 April 2005 12:36:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:40 UTC