<?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>399</bug_id>
          
          <creation_ts>2003-12-04 07:56:56 +0000</creation_ts>
          <short_desc>validator doesn&apos;t recognize rules in stylesheet when first line is a complex comment</short_desc>
          <delta_ts>2004-04-28 14:08:17 +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>CSS 2.0</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator-upload.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dj-cafe</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          <cc>dj-cafe</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>917</commentid>
    <comment_count>0</comment_count>
    <who name="">dj-cafe</who>
    <bug_when>2003-12-04 07:56:56 +0000</bug_when>
    <thetext>I wrote the following 3 lines to the file &apos;test.css&apos; and let it validate per 
upload on the URL &apos;http://jigsaw.w3.org/css-validator/validator-upload.html&apos;:
/********************** ****************/
*.gg { color: blue; }
body { background-color: red;}

The options I made were: Warnings:all, Profile:CSS2.0, Medium:screen.

The result of the validation says: No stylesheet found.

If you remove the blank in the first line (within the comment) then the 
validator recognizes the rules.

If you write something within the comment it fails too.

But if write a blank immediately before the last asterisk in the first line 
everything works:
/********************** *************** */
*.gg { color: blue; }
body { background-color: red;}

This doesn&apos;t work:
/**********************hello****************/
*.gg { color: blue; }
body { background-color: red;}

And this works:
/**********************hello*************** */
*.gg { color: blue; }
body { background-color: red;}


Kind regards
DJ CaFe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773</commentid>
    <comment_count>1</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2004-04-28 10:08:17 +0000</bug_when>
    <thetext>Fixed by creating a new CssParser instead of reusing a previously allocated one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>