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 399 - validator doesn't recognize rules in stylesheet when first line is a complex comment
Summary: validator doesn't recognize rules in stylesheet when first line is a complex ...
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: PC Windows 2000
: P5 trivial
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 07:56 UTC by dj-cafe
Modified: 2004-04-28 14:08 UTC (History)
1 user (show)

See Also:


Attachments

Description dj-cafe 2003-12-04 07:56:56 UTC
I wrote the following 3 lines to the file 'test.css' and let it validate per 
upload on the URL 'http://jigsaw.w3.org/css-validator/validator-upload.html':
/********************** ****************/
*.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'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
Comment 1 Yves Lafon 2004-04-28 10:08:17 UTC
Fixed by creating a new CssParser instead of reusing a previously allocated one.