Bug 20102

Summary: Parser bug: malformed p {color: red !important fail;} declaration should be ignored
Product: WebKit Reporter: Robert Blaut <webkit>
Component: CSSAssignee: Nobody <webkit-unassigned>
Severity: Normal Keywords: HasReduction
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://hixie.ch/tests/adhoc/css/parsing/core-syntax/006.html
Description Flags
minimal test case none

Description Robert Blaut 2008-07-18 14:38:26 PDT
p {color: red !important fail;} its incorrect according CSS 2.1 and should be ignored by CSS parser. Unfortunately WebKit fails in this case.

It's interesting since CSSGrammar.cpp already has such code:

  case 182:
#line 1142 "WebCore/css/CSSGrammar.y"
        /* When we encounter something like p {color: red !important fail;} we should drop the declaration */
        (yyval.boolean) = false;

but apparently something is broken.
Comment 1 Robert Blaut 2008-07-18 14:40:20 PDT
Created attachment 22376 [details]
minimal test case
Comment 2 Robert Blaut 2008-07-18 14:57:07 PDT
Ups :( It will be fixed when patch for bug 14346 will be landed.

*** This bug has been marked as a duplicate of 14346 ***