<?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>143479</bug_id>
          
          <creation_ts>2015-04-07 05:42:33 -0700</creation_ts>
          <short_desc>REGRESSION: Wrong layout in http://www.heroquestclassic.com/heroes-fe-de-erratas-y-un-breve-descanso/</short_desc>
          <delta_ts>2015-04-24 13:47:58 -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>Evangelism</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andres Gomez Garcia">agomez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>cgarcia</cc>
    
    <cc>darin</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yoon</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1083295</commentid>
    <comment_count>0</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2015-04-07 05:42:33 -0700</bug_when>
    <thetext>WebKitGtk 2.8.0

Open http://www.heroquestclassic.com/heroes-fe-de-erratas-y-un-breve-descanso/ in MiniBrowser

The layout is completely wrong, with all the content in a narrow column at the left of the page.

This is also reproducible with Epiphany 3.16.0 running also WebKitGtk 2.8.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083901</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-04-09 00:16:24 -0700</bug_when>
    <thetext>It works with WebKitGTK+ 2.6.x, but fails with trunk/2.8. The problem is also reproducible in mac, so this looks like a recent regression in WebCore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084207</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-09 22:47:07 -0700</bug_when>
    <thetext>Next step would be to reduce this to make a much smaller test case showing the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084222</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-04-10 00:19:58 -0700</bug_when>
    <thetext>Knowing the revision that introduced the regression would also help. I started to bisect yesterday, but all the build breaks made it impossible to do a bisect using the GTK+ port :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084225</commentid>
    <comment_count>4</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2015-04-10 00:22:45 -0700</bug_when>
    <thetext>In Safari Version 8.0.5 (10600.5.17), it seems okay, but
I don&apos;t know which revision it uses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084226</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-10 00:27:32 -0700</bug_when>
    <thetext>Note that we need the reduction anyway to help us make a regression test, even if we don&apos;t figure out exactly what version this regressed in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084227</commentid>
    <comment_count>6</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2015-04-10 00:40:05 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Note that we need the reduction anyway to help us make a regression test,
&gt; even if we don&apos;t figure out exactly what version this regressed in.

I agree to make a regression test for this bug.
If there is nobody have a time to do it, I&apos;ll do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084607</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-04-11 21:45:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/20511704&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084613</commentid>
    <comment_count>8</comment_count>
      <attachid>250595</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-11 22:27:22 -0700</bug_when>
    <thetext>Created attachment 250595
reduced test case

It’s a CSS rule problem. I attached a simple test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084614</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-11 22:29:47 -0700</bug_when>
    <thetext>Maybe r182321? The new Bloom filter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084615</commentid>
    <comment_count>10</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-11 22:35:49 -0700</bug_when>
    <thetext>Or some earlier change to the CSS rule system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084653</commentid>
    <comment_count>11</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-12 09:54:37 -0700</bug_when>
    <thetext>Looks like this isn’t a bug at all. The website was depending on a bug in an older version of WebKit. The :not expression should match almost everything, and it does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084654</commentid>
    <comment_count>12</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-12 09:57:47 -0700</bug_when>
    <thetext>The style sheet named pb-view.css has these rules in it:

.template-wrapper .span3, :not(.portfolio-grid li.span3) {
    width: 22.75%;
}

.template-wrapper .span12 .span3, :not(.portfolio-grid li.span3) {
    width: 21.25%;
}

Those rules are going to apply to practically every element on the page, and are going to set their width to about a fifth of what the should be. Older versions of WebKit without proper :not support would incorrectly ignore these rules. I believe the error here was using a comma rather than using a space. I believe the :not is supposed to be a descendant selector.

I suggest we not change WebKit and instead get the website to fix their broken style sheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084655</commentid>
    <comment_count>13</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-12 09:58:59 -0700</bug_when>
    <thetext>I’d like to understand why this problem doesn’t happen with non-WebKit web browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084656</commentid>
    <comment_count>14</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-12 09:59:58 -0700</bug_when>
    <thetext>Note that I say these rules set the widths of elements to about a fifth what they should be. But this happens over and over again, since these rules apply to almost every element on the page, so they apply to the body element, and each div element, and the img element, and so on. So the widths get smaller and smaller (1/5 of 1/5 of 1/5).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084672</commentid>
    <comment_count>15</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-04-12 12:41:04 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; I’d like to understand why this problem doesn’t happen with non-WebKit web
&gt; browsers.

It is because of our support for CSS 4.

The other browsers only support CSS Selectors Level 3. In Level 3, it was only valid to use a simple selector inside :not().

In WebKit, we support almost full selector lists (:visited and :link do not match). The rule &quot;:not(.portfolio-grid li.span3)&quot; would be invalid for older browsers. For us it is equivalent to &quot;:not(.portfolio-grid &gt;&gt; li.span3)&quot; and is completely valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1084681</commentid>
    <comment_count>16</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-12 13:06:45 -0700</bug_when>
    <thetext>So this was skipped in older browsers because it was not valid. But in recent WebKit it matches everything. I think this is going to have to be fixed by the website owners. Unless we find this kind of mistake is common and we have to come up with some kind of compatibility quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1086262</commentid>
    <comment_count>17</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2015-04-17 01:05:55 -0700</bug_when>
    <thetext>Another way to think about this is that CSS 4 :not may not be web compatible as specified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1088204</commentid>
    <comment_count>18</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2015-04-24 01:47:20 -0700</bug_when>
    <thetext>Thanks guys! I will report back to the website.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1088251</commentid>
    <comment_count>19</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-04-24 10:43:02 -0700</bug_when>
    <thetext>Jon Davis reached out to the site owner on 4/16. The issue comes from a WordPress plugin called Aqua Page Builder. Jon contacted the plugin author on 4/20, who has mentioned he is no longer actively developing the plugin, but said he was open to recommendations. We sent over the recommended changes and waiting to hear back on whether he will implement them or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1088309</commentid>
    <comment_count>20</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-04-24 13:46:55 -0700</bug_when>
    <thetext>Can someone try a pull request? https://github.com/syamilmj/Aqua-Page-Builder/pulls</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1088310</commentid>
    <comment_count>21</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2015-04-24 13:47:58 -0700</bug_when>
    <thetext>Oh, great!

Well, I sent a comment back to the site but it seems you have already done much more work on that direction.

Thanks a lot!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>250595</attachid>
            <date>2015-04-11 22:27:22 -0700</date>
            <delta_ts>2015-04-11 22:27:22 -0700</delta_ts>
            <desc>reduced test case</desc>
            <filename>heroquest-reduction.html</filename>
            <type>text/html</type>
            <size>100</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">PHN0eWxlPgoueCwgOm5vdCgueSBsaSkgeyBkaXNwbGF5OiBub25lOyB9Cjwvc3R5bGU+CjxkaXY+
WW91IHNob3VsZCBiZSBhYmxlIHRvIHNlZSB0aGlzIHRleHQuPC9kaXY+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>