This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3581 - Says Parse-Tree error for what im sure is a valid code
Summary: Says Parse-Tree error for what im sure is a valid code
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-05 16:53 UTC by cyaneyed
Modified: 2006-08-07 00:44 UTC (History)
0 users

See Also:


Attachments

Description cyaneyed 2006-08-05 16:53:49 UTC
i use windows xp sevice pack 1.

i use the css validator to check whether my code is css compliant.
in my stylesheet i use the opacity codes:

filter:alpha(opacity=75);
-moz-opacity:0.75;
opacity:0.75;
-khtml-opacity:0.75;
padding-top: 10px;

when i test it in IE6 and Firefox 1.5.06 it works pretty well. i use it to make my text areas semitransparent so that the background image shows through it.

when i check it with cssvalidator it says:
<--------------QUOTE-------------->
To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.
Errors
URI : http://www.cyaneyed.frih.net/homestyle.css

    * Line: 11 Context : body

      Parse Error - opacity=75)
    * Line: 12 Context : body

      Parse Error - -moz-opacity:0.75;
    * Line: 18

      Parse Error - :0.75; -khtml-opacity:0.75; padding-top: 10px; } 
<------------------END QUOTE---------------------->

but if the browsers interpret it correctly then why is the css validator saying that its not valid css.
Comment 1 Olivier Thereaux 2006-08-07 00:44:03 UTC
(In reply to comment #0)

> but if the browsers interpret it correctly 
> then why is the css validator saying
> that its not valid css.

Because the validator is not here to check what browsers support but to check whether the stylesheet is following the specification. Now, there is no filter property in the CSS2 specification [1], and -moz-* properties are proprietary. So the validator is right in pointing them to you.  

http://www.w3.org/TR/CSS2/propidx.html