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/>

            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:

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:54 UTC