<?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>42614</bug_id>
          
          <creation_ts>2010-07-19 22:18:36 -0700</creation_ts>
          <short_desc>:empty css selector is not working correctly</short_desc>
          <delta_ts>2010-07-20 10:30:51 -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>26570</dup_id>
          
          <bug_file_loc>http://vitresimpec.com/webkit/:empty-bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simon Charette">charette.s</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>253551</commentid>
    <comment_count>0</comment_count>
      <attachid>62033</attachid>
    <who name="Simon Charette">charette.s</who>
    <bug_when>2010-07-19 22:18:36 -0700</bug_when>
    <thetext>Created attachment 62033
Testcase

Webkit browsers Chrome 5 (Win &amp; Linux), Chromium 6 (Win &amp; Linux), and Safari latest on PC all behave the same and don&apos;t respect the :empty selector correctly. Hitting the &quot;force redraw&quot; button or zooming the page force webkit to respect the pseudo-class correctly.

See http://www.w3.org/TR/css3-selectors/#empty-pseudo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253552</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Charette">charette.s</who>
    <bug_when>2010-07-19 22:21:05 -0700</bug_when>
    <thetext>Download the file locally while i host a version. The attachment seems to work fine here but locally it fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253553</commentid>
    <comment_count>2</comment_count>
      <attachid>62033</attachid>
    <who name="Simon Charette">charette.s</who>
    <bug_when>2010-07-19 22:25:33 -0700</bug_when>
    <thetext>Comment on attachment 62033
Testcase

&gt;&lt;!doctype html&gt;
&gt;&lt;html&gt;
&gt;  &lt;head&gt;
&gt;    &lt;style type=&quot;text/css&quot;&gt;
&gt;      h2:empty,
&gt;      tbody:empty,
&gt;      thead:empty {
&gt;        display: none;
&gt;      }
&gt;      h2:not(:empty),
&gt;      tbody:not(:empty),
&gt;      thead:not(:empty) {
&gt;        background: green;
&gt;      }
&gt;    &lt;/style&gt;
&gt;  &lt;/head&gt;
&gt;  &lt;body&gt;
&gt;    &lt;a href=&quot;https://bug-42614-attachments.webkit.org/attachment.cgi?id=62033&quot;&gt;Reload&lt;/a&gt;
&gt;    &lt;input onclick=&quot;document.body.innerHTML = document.body.innerHTML&quot; id=&quot;refresher&quot; type=&quot;button&quot; value=&quot;force redraw (document.body.innerHTML = document.body.innerHTML)&quot; /&gt;
&gt;    &lt;h2&gt;I&apos;m not empty&lt;/h2&gt;
&gt;    &lt;table&gt;
&gt;      &lt;thead&gt;
&gt;        &lt;tr&gt;
&gt;          &lt;th&gt;/html/body/table/thead/tr/th&lt;/th&gt;
&gt;        &lt;/tr&gt;
&gt;      &lt;/thead&gt;
&gt;      &lt;tbody&gt;
&gt;        &lt;tr&gt;
&gt;          &lt;td&gt;/html/body/table/tbody/tr/td&lt;/td&gt;
&gt;        &lt;/tr&gt;
&gt;      &lt;/tbody&gt;
&gt;      &lt;tr&gt;
&gt;        &lt;td&gt;/html/body/table/tr/td =&gt; /html/body/table/tbody[2]/tr/td&lt;/td&gt;
&gt;      &lt;/tr&gt;
&gt;    &lt;/table&gt;
&gt;  &lt;/body&gt;
&gt;&lt;/html&gt;
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253560</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Charette">charette.s</who>
    <bug_when>2010-07-19 22:52:45 -0700</bug_when>
    <thetext>There seems to be a layout cache issue somehow. On linux chromium 6.0.470.0 (52837) i can only reproduce locally but on windows chromium 6.0.446.0 (50541) fails both online and offline (same with chrome 5.0.375.99 and safari 5.0).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253796</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-07-20 10:25:22 -0700</bug_when>
    <thetext>Looks like a duplicate of bug 26570.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253798</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Charette">charette.s</who>
    <bug_when>2010-07-20 10:30:51 -0700</bug_when>
    <thetext>It is a dupplicate, sorry. Still the report is old.

*** This bug has been marked as a duplicate of bug 26570 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>62033</attachid>
            <date>2010-07-19 22:18:36 -0700</date>
            <delta_ts>2010-07-19 22:25:33 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>:empty.html</filename>
            <type>text/html</type>
            <size>839</size>
            <attacher name="Simon Charette">charette.s</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlIHR5cGU9InRleHQvY3Nz
Ij4KICAgICAgaDI6ZW1wdHksCiAgICAgIHRib2R5OmVtcHR5LAogICAgICB0aGVhZDplbXB0eSB7
CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICBoMjpub3QoOmVtcHR5KSwKICAg
ICAgdGJvZHk6bm90KDplbXB0eSksCiAgICAgIHRoZWFkOm5vdCg6ZW1wdHkpIHsKICAgICAgICBi
YWNrZ3JvdW5kOiBncmVlbjsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2hlYWQ+CiAgPGJvZHk+
CiAgICA8aW5wdXQgb25jbGljaz0iZG9jdW1lbnQuYm9keS5pbm5lckhUTUwgPSBkb2N1bWVudC5i
b2R5LmlubmVySFRNTCIgaWQ9InJlZnJlc2hlciIgdHlwZT0iYnV0dG9uIiB2YWx1ZT0iZm9yY2Ug
cmVkcmF3IChkb2N1bWVudC5ib2R5LmlubmVySFRNTCA9IGRvY3VtZW50LmJvZHkuaW5uZXJIVE1M
KSIgLz4KICAgIDxoMj5JJ20gbm90IGVtcHR5PC9oMj4KICAgIDx0YWJsZT4KICAgICAgPHRoZWFk
PgogICAgICAgIDx0cj4KICAgICAgICAgIDx0aD4vaHRtbC9ib2R5L3RhYmxlL3RoZWFkL3RyL3Ro
PC90aD4KICAgICAgICA8L3RyPgogICAgICA8L3RoZWFkPgogICAgICA8dGJvZHk+CiAgICAgICAg
PHRyPgogICAgICAgICAgPHRkPi9odG1sL2JvZHkvdGFibGUvdGJvZHkvdHIvdGQ8L3RkPgogICAg
ICAgIDwvdHI+CiAgICAgIDwvdGJvZHk+CiAgICAgIDx0cj4KICAgICAgICA8dGQ+L2h0bWwvYm9k
eS90YWJsZS90ci90ZCA9PiAvaHRtbC9ib2R5L3RhYmxlL3Rib2R5WzJdL3RyL3RkPC90ZD4KICAg
ICAgPC90cj4KICAgIDwvdGFibGU+CiAgPC9ib2R5Pgo8L2h0bWw+Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>