W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2013

[Bug 20555] New: "unknown" error when unit is omitted in linear-gradient color-stop

From: <bugzilla@jessica.w3.org>
Date: Thu, 03 Jan 2013 16:08:23 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-20555-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20555

            Bug ID: 20555
           Summary: "unknown" error when unit is omitted in
                    linear-gradient color-stop
    Classification: Unclassified
           Product: CSSValidator
           Version: CSS Validator
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 3
          Assignee: dave.null@w3.org
          Reporter: andreaslindpetersen@gmail.com
        QA Contact: www-validator-cvs@w3.org

The CSS validator at http://jigsaw.w3.org/css-validator/ outputs an "unknown"
error if the percent sign is omitted in a linear-gradient color stop:

body {
    background: linear-gradient(100deg, white 0, black 100%);
}

Whereas this validates fine:

body {
    background: linear-gradient(100deg, white 0%, black 100%);
}

The way I read the spec it's OK to omit the unit:
http://dev.w3.org/csswg/css3-images/#linear-gradients

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 3 January 2013 16:08:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 January 2013 16:08:24 GMT