<?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>86090</bug_id>
          
          <creation_ts>2012-05-10 05:46:02 -0700</creation_ts>
          <short_desc>Setting innerHTML for a &quot;position: absolute&quot; element does not update the rendered view</short_desc>
          <delta_ts>2016-03-04 11:04:51 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Pavlov (apavlov)">apavlov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bweinstein</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>mitz</cc>
    
    <cc>ojan</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>620505</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2012-05-10 05:46:02 -0700</bug_when>
    <thetext>(From http://stackoverflow.com/questions/10534136/webkit-render-bug-for-dynamic-content)

When I change the content of a span with javascript this change does not get rendered in Webkit browsers. This effect only applies when a wrapper span is positioned relative and the inner span is positioned absolute and has a fixed width and height. Here is the most simple example of the bug (check it in a webkit browser like Chrome or Safari)

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Webkit render bug&lt;/title&gt;
        &lt;style type=&quot;text/css&quot;&gt;
            .wrapper {
                position: relative;
            }

            #absolute-block {
                display: block;
                position: absolute;
                width: 152px;
                height:42px;
                background-color: #EEEE00;
                color: #FF0000;
            }

        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;Webkit render bug&lt;/h1&gt;
        &lt;button onclick=&quot;document.getElementById(&apos;absolute-block&apos;).innerHTML = &apos;Update test&apos;;&quot;&gt;Update test&lt;/button&gt;
        &lt;span class=&quot;wrapper&quot;&gt;
            Some content
            &lt;span id=&quot;absolute-block&quot;&gt;Absolute-block&lt;/span&gt;
        &lt;/span&gt;
    &lt;/body&gt;
&lt;/html&gt;

The click on the button will replace the content of the span in the DOM-tree but this doesn&apos;t get rendered by the webkit based browsers like Chrome and Safari. Other browsers do not have this render bug.

Full FrameView invalidation fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620515</commentid>
    <comment_count>1</comment_count>
      <attachid>141157</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2012-05-10 06:09:09 -0700</bug_when>
    <thetext>Created attachment 141157
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620702</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-05-10 10:41:40 -0700</bug_when>
    <thetext>This feels a little like the a left-over-anonymous block bug which Jullien and Ojan and I were discussing the other day.  Where you change a block to an inline and then try to change it back to a block and it doesn&apos;t reflow on the right line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620828</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-05-10 12:08:59 -0700</bug_when>
    <thetext>Yup. It sounds a lot like bug 74976.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1170943</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-03-04 11:04:51 -0800</bug_when>
    <thetext>I can&apos;t reproduce this in recent nightly builds.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>141157</attachid>
            <date>2012-05-10 06:09:09 -0700</date>
            <delta_ts>2012-05-10 06:09:09 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test-innerHTML.html</filename>
            <type>text/html</type>
            <size>798</size>
            <attacher name="Alexander Pavlov (apavlov)">apavlov</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+DQo8aHRtbD4NCiAgICA8aGVhZD4NCiAgICAgICAgPHRpdGxlPldlYmtp
dCByZW5kZXIgYnVnPC90aXRsZT4NCiAgICAgICAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCiAg
ICAgICAgICAgIC53cmFwcGVyIHsNCiAgICAgICAgICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7
DQogICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICNhYnNvbHV0ZS1ibG9jayB7DQogICAgICAg
ICAgICAgICAgZGlzcGxheTogYmxvY2s7DQogICAgICAgICAgICAgICAgcG9zaXRpb246IGFic29s
dXRlOw0KICAgICAgICAgICAgICAgIHdpZHRoOiAxNTJweDsNCiAgICAgICAgICAgICAgICBoZWln
aHQ6NDJweDsNCiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRUVFRTAwOw0KICAg
ICAgICAgICAgICAgIGNvbG9yOiAjRkYwMDAwOw0KICAgICAgICAgICAgfQ0KDQogICAgICAgIDwv
c3R5bGU+DQogICAgPC9oZWFkPg0KICAgIDxib2R5Pg0KICAgICAgICA8aDE+V2Via2l0IHJlbmRl
ciBidWc8L2gxPg0KICAgICAgICA8YnV0dG9uIG9uY2xpY2s9ImRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCdhYnNvbHV0ZS1ibG9jaycpLmlubmVySFRNTCA9ICdVcGRhdGUgdGVzdCc7Ij5VcGRhdGUg
dGVzdDwvYnV0dG9uPg0KICAgICAgICA8c3BhbiBjbGFzcz0id3JhcHBlciI+DQogICAgICAgICAg
ICBTb21lIGNvbnRlbnQNCiAgICAgICAgICAgIDxzcGFuIGlkPSJhYnNvbHV0ZS1ibG9jayI+QWJz
b2x1dGUtYmxvY2s8L3NwYW4+DQogICAgICAgIDwvc3Bhbj4NCiAgICA8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>