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 1839 - @import rules after css style is not allowed
Summary: @import rules after css style is not allowed
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: Website (show other bugs)
Version: 0.7.0
Hardware: All All
: P2 trivial
Target Milestone: 0.7.1
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://validator.w3.org/base.css
Whiteboard:
Keywords: Usability
: 2293 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-10 08:56 UTC by Rick Jansen
Modified: 2005-09-25 14:17 UTC (History)
1 user (show)

See Also:


Attachments

Description Rick Jansen 2005-08-10 08:56:27 UTC
http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//validator.w3.org/base.css

http://www.w3.org/TR/CSS21/cascade.html#at-import
"Any @import rules must precede all rule sets in a style sheet."

Moving the two lines to the top fixes the error, but I dont know the
consequences for printouts or handhelds.
Comment 1 Olivier Thereaux 2005-08-10 13:51:17 UTC
Thanks for filing the bug, Rick. 
Accepting it, will work on it within a few days.
Comment 2 Olivier Thereaux 2005-08-12 01:57:56 UTC
fixed in cvs. No apparent change or consequent for print (but css print support is fuzzy at best in general) 
at least
Comment 3 Ville Skyttä 2005-09-25 10:15:56 UTC
*** Bug 2293 has been marked as a duplicate of this bug. ***
Comment 4 hhschwab 2005-09-25 12:20:29 UTC
reopening the bug, as my dupe seems to be caused by this.

http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//validator.w3.org/base.css
Errors
URI : http://validator.w3.org/base.css

    * Line: 309

      Parse error - Unrecognized : @import url("print.css") print;
    * Line: 310

      Parse error - Unrecognized : @import url("handheld.css") handheld;

http://validator.w3.org/print.css exists, http://validator.w3.org/handheld.css also
Comment 5 Rick Jansen 2005-09-25 13:14:21 UTC
(In reply to comment #4)
> reopening the bug, as my dupe seems to be caused by this.
> 
>
http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//validator.w3.org/base.css
> Errors
> URI : http://validator.w3.org/base.css
> 
>     * Line: 309
> 
>       Parse error - Unrecognized : @import url("print.css") print;
>     * Line: 310
> 
>       Parse error - Unrecognized : @import url("handheld.css") handheld;
> 
> http://validator.w3.org/print.css exists, http://validator.w3.org/handheld.css
also

This is fixed in CVS, validator.w3.org doesnt run the CVS version ofcourse. The
next release will contain the fix.
Comment 6 Ville Skyttä 2005-09-25 14:17:17 UTC
Right, the fix can be verified in the CVS version from the 0_7 branch which 
will soon become 0.7.1: 
 
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fqa-dev.w3.org%2Fwmvs%2F0.7%2Fbase.css&usermedium=all