[Webkit-unassigned] [Bug 15360] color:#{predefined colorName} is okay in Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 14 00:25:14 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=15360





------- Comment #2 from eric at webkit.org  2008-01-14 00:25 PDT -------
I think this occurs because of these two things:

  | '#' maybe_space { $$.id = 0; $$.string = ParseString(); $$.unit =
CSSPrimitiveValue::CSS_RGBCOLOR; } /* Handle error case: "color: #;" */

in CSSGrammar.y

And this, in CSSParser::parseColorFromValue:

    } else if (value->unit == CSSPrimitiveValue::CSS_RGBCOLOR ||
                value->unit == CSSPrimitiveValue::CSS_IDENT ||
                (!strict && value->unit == CSSPrimitiveValue::CSS_DIMENSION)) {
        if (!CSSParser::parseColor(domString(value->string), c, strict &&
value->unit == CSSPrimitiveValue::CSS_IDENT))
            return false;

CSSParser::parseColor is multi-use and doesn't know that the value being passed
in is an RGBCOLOR instead of an IDENT.  Still should rather easy to fix with a
little bit of thought.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list