<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3581</bug_id>
          
          <creation_ts>2006-08-05 16:53:49 +0000</creation_ts>
          <short_desc>Says Parse-Tree error for what im sure is a valid code</short_desc>
          <delta_ts>2006-08-07 00:44:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Other</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>cyaneyed</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11029</commentid>
    <comment_count>0</comment_count>
    <who name="">cyaneyed</who>
    <bug_when>2006-08-05 16:53:49 +0000</bug_when>
    <thetext>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:
&lt;--------------QUOTE--------------&gt;
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; } 
&lt;------------------END QUOTE----------------------&gt;

but if the browsers interpret it correctly then why is the css validator saying that its not valid css.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11031</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-08-07 00:44:03 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; but if the browsers interpret it correctly 
&gt; then why is the css validator saying
&gt; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>