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>
Status: RESOLVED DUPLICATE    
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
Attachments:
Description Flags
minimal test case none

Robert Blaut
Reported 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; ;} break; but apparently something is broken.
Attachments
minimal test case (332 bytes, text/html)
2008-07-18 14:40 PDT, Robert Blaut
no flags
Robert Blaut
Comment 1 2008-07-18 14:40:20 PDT
Created attachment 22376 [details] minimal test case
Robert Blaut
Comment 2 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 ***
Note You need to log in before you can comment on or make changes to this bug.