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 20555 - "unknown" error when unit is omitted in linear-gradient color-stop
Summary: "unknown" error when unit is omitted in linear-gradient color-stop
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 3 (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-03 16:08 UTC by Andreas Lind Petersen
Modified: 2013-01-03 21:25 UTC (History)
0 users

See Also:


Attachments

Description Andreas Lind Petersen 2013-01-03 16:08:23 UTC
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
Comment 1 Yves Lafon 2013-01-03 21:25:44 UTC
Thanks for the report, it was indeed a bug in the code. Now fixed.