<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20102</bug_id>
          
          <creation_ts>2008-07-18 14:38:26 -0700</creation_ts>
          <short_desc>Parser bug: malformed p {color: red !important fail;} declaration should be ignored</short_desc>
          <delta_ts>2008-07-18 14:57:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14346</dup_id>
          
          <bug_file_loc>http://hixie.ch/tests/adhoc/css/parsing/core-syntax/006.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Blaut">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86380</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-07-18 14:38:26 -0700</bug_when>
    <thetext>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&apos;s interesting since CSSGrammar.cpp already has such code:

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

but apparently something is broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86381</commentid>
    <comment_count>1</comment_count>
      <attachid>22376</attachid>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-07-18 14:40:20 -0700</bug_when>
    <thetext>Created attachment 22376
minimal test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86383</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-07-18 14:57:07 -0700</bug_when>
    <thetext>Ups :( It will be fixed when patch for bug 14346 will be landed.

*** This bug has been marked as a duplicate of 14346 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22376</attachid>
            <date>2008-07-18 14:40:20 -0700</date>
            <delta_ts>2008-07-18 14:40:20 -0700</delta_ts>
            <desc>minimal test case</desc>
            <filename>Parsing invalid &apos;!&apos; declarations.html</filename>
            <type>text/html</type>
            <size>332</size>
            <attacher name="Robert Blaut">webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMC8vRU4iPgo8aHRtbCBs
YW5nPSJlbiI+CiA8aGVhZD4KICA8dGl0bGU+UGFyc2luZyBpbnZhbGlkICchJyBkZWNsYXJhdGlv
bnM8L3RpdGxlPgogIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgIGJvZHkgeyBjb2xvcjogZ3Jl
ZW47IH0KICAgcCB7IGJhY2tncm91bmQ6IHJlZCAhIGltcG9ydGFudCBmYWlsOyBjb2xvcjogeWVs
bG93ICEgaW1wb3J0YW50IGZhaWwgfQogIDwvc3R5bGU+CiA8L2hlYWQ+CiA8Ym9keT4KICA8cD5U
aGlzIGxpbmUgc2hvdWxkIGJlIGdyZWVuLjwvcD4KIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>