Incorrect error message when outline shorthand uses an unsupported color value

NEW
Unassigned

Status

()

Core
CSS Parsing and Computation
--
minor
9 years ago
9 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
Created attachment 352939 [details]
testcase (see warning in Firefox's Error Console)

body { outline: 1px dotted reed; }

Warning: 
  Expected color but found 'dotted'.
  Expected color but found 'reed'.
  Error in parsing value for 'outline'.
  Declaration dropped.
Source File: y.html
Line: 5

The first sentence of the warning is wrong.  In bug 418122, this confused Mike Cowperthwaite and made him think Firefox didn't support "dotted".
We probably want a CLEAR_ERROR() call at the appropriate point (where, exactly?) in CSSParserImpl::ParseChoice and perhaps some other similar methods.
You need to log in before you can comment on or make changes to this bug.