- From: <bugzilla@jessica.w3.org>
 - Date: Wed, 11 Apr 2012 12:04:21 +0000
 - To: www-validator-cvs@w3.org
 
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16700
           Summary: Validating with CSS 1 Profile always reports an error
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 1.0
        AssignedTo: dave.null@w3.org
        ReportedBy: radu_coravu@sync.ro
         QAContact: www-validator-cvs@w3.org
If I valida a simple CSS like:
a{
 margin-top: 0;
}
with the profile set to CSS 1, this error is reported:
org.w3c.css.util.InvalidParamException: unrecognized media all 
org.w3c.css.util.InvalidParamException: unrecognized media all 
    at org.w3c.css.media.css1.AtRuleMedia.addMedia(AtRuleMedia.java:27)
    at org.w3c.css.css.StyleSheetParser.addMedias(StyleSheetParser.java:242)
    at org.w3c.css.css.StyleSheetParser.parse(StyleSheetParser.java:468)
In a previous CSS Validator version the StyleSheetParser class contained the
following code:
if (media == null) {
                if (ac.getCssVersion() != CssVersion.CSS1) {
        if (ac.getMedium() == null) {
            media = "all";
        } else {
            media = ac.getMedium();
        }
        }
But the clause "ac.getCssVersion() != CssVersion.CSS1" was removed in the
latest version.
-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 11 April 2012 12:04:24 UTC