<?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>136886</bug_id>
          
          <creation_ts>2014-09-17 05:47:13 -0700</creation_ts>
          <short_desc>webkit doesn&apos;t redraw an element that *was* hidden with :empty display: none</short_desc>
          <delta_ts>2022-07-14 09:57:14 -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>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Paprotsky">andrew</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1035708</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Paprotsky">andrew</who>
    <bug_when>2014-09-17 05:47:13 -0700</bug_when>
    <thetext>1. Create a non-empty element with the following style applied :empty {display: none}
2. Remove all children of the element or simply set innerHTML to an empty string.
3. At this point the element is hidden.
4. Add some children to the element or set innerHTML to a non-empty string.
5. The element is still hidden.

See the attachment for a reproducible test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1035709</commentid>
    <comment_count>1</comment_count>
      <attachid>238251</attachid>
    <who name="Andrew Paprotsky">andrew</who>
    <bug_when>2014-09-17 05:47:45 -0700</bug_when>
    <thetext>Created attachment 238251
reproducible test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883651</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-14 09:57:14 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>238251</attachid>
            <date>2014-09-17 05:47:45 -0700</date>
            <delta_ts>2014-09-17 05:47:45 -0700</delta_ts>
            <desc>reproducible test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>578</size>
            <attacher name="Andrew Paprotsky">andrew</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgICA8aGVhZD4KICAgICAgICA8c3R5bGU+CiAgICAgICAgICAgICNlbGVtZW50IHsK
ICAgICAgICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIHJlZDsKICAgICAgICAgICAgfQogICAg
ICAgICAgICAjZWxlbWVudDplbXB0eSB7CiAgICAgICAgICAgICAgICBkaXNwbGF5OiBub25lOwog
ICAgICAgICAgICB9CiAgICAgICAgPC9zdHlsZT4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAg
ICAgIDxkaXYgaWQ9ImVsZW1lbnQiPmFiYzwvZGl2PgogICAgICAgIDxzY3JpcHQ+CiAgICAgICAg
ICAgIHZhciBlbGVtZW50ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2VsZW1lbnQnKTsKCiAg
ICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBlbGVtZW50
LmlubmVySFRNTCA9ICcnOwogICAgICAgICAgICB9LCAyMDAwKTsKCiAgICAgICAgICAgIHNldFRp
bWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBlbGVtZW50LmlubmVySFRNTCA9ICdh
YmMnOwogICAgICAgICAgICB9LCA0MDAwKTsKICAgICAgICA8L3NjcmlwdD4KICAgIDwvYm9keT4K
PC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>