[Webkit-unassigned] [Bug 20102] New: Parser bug: malformed p {color: red !important fail; } declaration should be ignored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 18 14:38:26 PDT 2008


           Summary: Parser bug: malformed p {color: red !important fail;}
                    declaration should be ignored
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: All
               URL: http://hixie.ch/tests/adhoc/css/parsing/core-
        OS/Version: All
            Status: NEW
          Keywords: HasReduction
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: webkit at blaut.biz

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.

Configure bugmail: https://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