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 1504 - Validator chokes on the Tantek Mid Pass Filter (MPF) under specific conditions
Summary: Validator chokes on the Tantek Mid Pass Filter (MPF) under specific conditions
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://www.jessemccarthy.net/testing/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 21:37 UTC by Jesse McCarthy
Modified: 2005-08-26 15:01 UTC (History)
2 users (show)

See Also:


Attachments
Non-empty, placeholder style sheet. (30 bytes, text/css; charset=utf-8)
2005-06-29 08:10 UTC, Etan Wexler
Details
Mid-pass filter. (103 bytes, text/css; charset=utf-8)
2005-06-29 08:45 UTC, Etan Wexler
Details
HTML document linking first to a style sheet with the mid-pass filter, and second to another style sheet. (535 bytes, text/html; charset=utf-8)
2005-06-29 08:56 UTC, Etan Wexler
Details
HTML document linking first to a placeholder style sheet, and second to a style sheet with the mid-pass filter. (535 bytes, text/html; charset=utf-8)
2005-06-29 08:59 UTC, Etan Wexler
Details

Description Jesse McCarthy 2005-06-20 21:37:34 UTC
The CSS validator chokes on the Tantek Mid Pass Filter (MPF) in certain 
situations.  For some reason it parses the stylesheet incorrectly and get's 
fooled by the escaped quote.  The error reported is "Parse error - 
Unrecognized : @import 'stylesheet.css';".

The example I linked to shows two pages, almost identical, both valid XHTML 
strict, that both link to the same two stylesheets, one of which implements 
the MPF.  The only difference between the pages is the order in which they 
link to the stylesheets.  One passes CSS validation, the other doesn't.
Comment 1 Jesse McCarthy 2005-06-20 21:42:45 UTC
Just to make sure you get that example URL:
http://www.jessemccarthy.net/testing/mid_pass_filter/

Comment 2 Etan Wexler 2005-06-29 08:10:49 UTC
Created attachment 386 [details]
Non-empty, placeholder style sheet.
Comment 3 Etan Wexler 2005-06-29 08:45:19 UTC
Created attachment 387 [details]
Mid-pass filter.
Comment 4 Etan Wexler 2005-06-29 08:56:41 UTC
Created attachment 388 [details]
HTML document linking first to a style sheet with the mid-pass filter, and second to another style sheet.
Comment 5 Etan Wexler 2005-06-29 08:59:06 UTC
Created attachment 389 [details]
HTML document linking first to a placeholder style sheet, and second to a style sheet with the mid-pass filter.
Comment 6 Etan Wexler 2005-06-29 09:10:43 UTC
The validator approves of the style sheet with the mid-pass filter:
<http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D387&usermedium=all>.

The validator approves of the document whose first style sheet has the mid-pass
filter:
<http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D388&usermedium=all>.

The validator erroneously disapproves of the document whose second style sheet
has the mid-pass filter:
<http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D389&usermedium=all>.
Comment 7 Marc Richards 2005-06-30 20:50:30 UTC
Thanks for reporting this bug Jesse. I was just about to waste a whole lot of
time trying to figure out why http://www.capgemini.com/ validates but my site
(which uses the two style sheets and has the mid-pass in the second stylesheet)
doesn't.
Comment 8 Yves Lafon 2005-08-26 14:48:18 UTC
Fixed, see http://qa-dev.w3.org:8001/css-validator/
Comment 9 Jesse McCarthy 2005-08-26 15:01:21 UTC
That's great -- appreciated.  When does that get rolled out to the production 
validator?