<?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>118260</bug_id>
          
          <creation_ts>2013-07-01 12:10:04 -0700</creation_ts>
          <short_desc>REGRESSION(r151510): CSS parser recovery for extra left parenthesis causes ignoring definitions beyond</short_desc>
          <delta_ts>2022-08-20 06:21:40 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>jonlee</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>svillar</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>905121</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-07-01 12:10:04 -0700</bug_when>
    <thetext>with the following CSS

.foo {
    background: rgba(255,255,255,1.0)
	    -moz-linear-gradient(top,
	    rgba(170,175,178,0.8) 15%,
	    (rgba(255,255,255,0.5) 65%
	);
}

div { 
    border: 1px solid red;
}

the extra &apos;(&apos; right before the second rgb causes ignoring the div { border: 1px.....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>905122</commentid>
    <comment_count>1</comment_count>
      <attachid>205828</attachid>
    <who name="alan">zalan</who>
    <bug_when>2013-07-01 12:10:57 -0700</bug_when>
    <thetext>Created attachment 205828
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>905123</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-07-01 12:13:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/14321487&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>905124</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-07-01 12:15:32 -0700</bug_when>
    <thetext>regressed at http://trac.webkit.org/changeset/151510</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>905285</commentid>
    <comment_count>4</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2013-07-02 01:25:23 -0700</bug_when>
    <thetext>Taking a look...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>905343</commentid>
    <comment_count>5</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2013-07-02 04:57:48 -0700</bug_when>
    <thetext>Actually I&apos;m not sure this is a regression. In the &quot;Rules for handling parsing errors&quot; section of the CSS specs it mentions:

&quot;User agents must close all open constructs (for example: blocks, parentheses, brackets, rules, strings, and comments) at the end of the style sheet.&quot;

So I understand from this paragraph that the new behavior is the desired one (actually no browser supports the test case you attached as all of them look for the matching closing parenthesis till the end of the stylesheet). Adding some more experienced people so we could have another opinion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892634</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-20 06:21:31 -0700</bug_when>
    <thetext>I am unable to reproduce this bug in Safari Technology Preview 151 and it does not show &quot;red&quot; border and it is same across all other browsers (Chrome Canary 106 and Firefox Nightly 105). I am going to mark this as &quot;RESOLVED WONTFIX&quot; since all browsers are aligned.

Please reopen if you think this is still not correct intended beahvior or I am testing incorrectly. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>205828</attachid>
            <date>2013-07-01 12:10:57 -0700</date>
            <delta_ts>2013-07-01 12:10:57 -0700</delta_ts>
            <desc>test case</desc>
            <filename>invalid_css.html</filename>
            <type>text/html</type>
            <size>368</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c3R5bGU+Ci5mb28gewogICAgYmFja2dyb3VuZDogcmdiYSgyNTUsMjU1
LDI1NSwxLjApCgkgICAgLW1vei1saW5lYXItZ3JhZGllbnQodG9wLAoJICAgIHJnYmEoMTcwLDE3
NSwxNzgsMC44KSAxNSUsCgkgICAgKHJnYmEoMjU1LDI1NSwyNTUsMC41KSA2NSUKCSk7Cn0KCmRp
diB7IAogICAgYm9yZGVyOiAxcHggc29saWQgcmVkOwp9CgpkaXYgeyAKICAgIHBhZGRpbmc6IDQw
cHg7Cn0KPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KPGRpdj5UaGlzIGhhcyBhIHNvbGlkIHJlZCAx
cHggYm9yZGVyLCBpZiBjc3MgcGFyc2VyIHJlY292ZXJzIGZyb20gYnJva2VuIGNzcyBwcm9wZXJs
eS48L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cgk=
</data>

          </attachment>
      

    </bug>

</bugzilla>