<?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>126267</bug_id>
          
          <creation_ts>2013-12-27 15:21:31 -0800</creation_ts>
          <short_desc>Root background doesn&apos;t correctly update with composited &lt;html&gt; element</short_desc>
          <delta_ts>2023-02-24 09:32:23 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Benson">geoff.benson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>963140</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Benson">geoff.benson</who>
    <bug_when>2013-12-27 15:21:31 -0800</bug_when>
    <thetext>This bug is best seen with a minimal demonstration page, which I have attached.

How to reproduce:
* Apply this style declaration:
html {
  -webkit-backface-visibility: hidden;
}

* After the page has loaded, change the styling on the &lt;body&gt; tag dynamically via JavaScript, for example by setting the background-color to something new.

Expected behavior:
The body style should be applied, and the viewport should redraw to show the applied style.

Actual behavior:
Only portions of the page get updated.  This bug was found when researching why only parts of the screen were rendered with a new background image when a style was applied to &lt;body&gt; (the parts of the screen which didn&apos;t get new elements added remained black, per the &lt;body&gt;&apos;s previous style at the time.)

Additional:
If the time between initial render and when the &lt;body&gt; style is changed is small enough (1ms or less), the bug doesn&apos;t trigger.

This has been reproduced on the following environments:

MacOS: Safari 7.0.1, Chrome 31.0.1650.63, Opera Next 19.0.1326.21
Windows 7: Chrome 31.0.1650.63 m
Android: 4.3, 4.0, 2.3.5 (though 2.3.5 has additional rendering bugs related to this). 
iOS: 7.0.4

Workaround:
If the -webkit-backface-visibility style is applied to &lt;body&gt; instead of &lt;html&gt;, this bug is not triggered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>963141</commentid>
    <comment_count>1</comment_count>
      <attachid>220066</attachid>
    <who name="Geoffrey Benson">geoff.benson</who>
    <bug_when>2013-12-27 15:22:10 -0800</bug_when>
    <thetext>Created attachment 220066
Example test case which triggers the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>963893</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-01-02 14:34:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/15740636&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936553</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-24 09:32:23 -0800</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 16.3 &amp; STP164 and we are matching with Chrome Canary 112 and Firefox Nightly 112 as well in the attached testcase.

Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!

Please reopen if this is reproducible. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>220066</attachid>
            <date>2013-12-27 15:22:10 -0800</date>
            <delta_ts>2013-12-27 15:22:10 -0800</delta_ts>
            <desc>Example test case which triggers the bug</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>1321</size>
            <attacher name="Geoffrey Benson">geoff.benson</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHN0eWxlIHR5cGU9InRl
eHQvY3NzIj4KICAgICAgICAgICAgaHRtbCB7CiAgICAgICAgICAgICAgICAtd2Via2l0LWJhY2tm
YWNlLXZpc2liaWxpdHk6IGhpZGRlbjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgLmJvZHlf
YnVnX2RlbW9uc3RyYXRpb24gewogICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogYmxh
Y2s7CiAgICAgICAgICAgICAgICBjb2xvcjogd2hpdGU7CiAgICAgICAgICAgIH0KICAgICAgICA8
L3N0eWxlPgogICAgICAgIDxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KICAgICAgICAg
ICAgc2V0VGltZW91dCggZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAidXNlIHN0cmljdCI7
CiAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYm9keSIpWzBd
LmNsYXNzTmFtZSA9ICJib2R5X2J1Z19kZW1vbnN0cmF0aW9uIjsKICAgICAgICAgICAgfSwgMjAw
MCk7CiAgICAgICAgPC9zY3JpcHQ+CiAgICA8L2hlYWQ+CiAgICA8Ym9keT4KICAgICAgICA8ZGl2
PgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIEluIDIgc2Vjb25kcywgdGhlIGJhY2tn
cm91bmQgb2YgdGhlIGJvZHkgaXMgc3VwcG9zZWQgdG8gYmVjb21lIGJsYWNrLgogICAgICAgICAg
ICAgICAgSG93ZXZlciwgdGhlIHJlbmRlcmluZyBidWcgYmVpbmcgZGVtb25zdHJhdGVkIGNhdXNl
cyBvbmx5IHRoaXMgZGl2IHRvIGJlY29tZSBibGFjay4KICAgICAgICAgICAgPC9wPgogICAgICAg
ICAgICA8cD4KICAgICAgICAgICAgICAgIE9uY2UgdGhlIGJ1ZyBoYXMgdHJpZ2dlcmVkLCB0cnkg
cmVzaXppbmcgdGhlIHdpbmRvdy4gIFRoaXMgYXBwZWFycyB0byB0cmlnZ2VyIGEKICAgICAgICAg
ICAgICAgIHJlZHJhdywgYWZ0ZXIgd2hpY2ggdGhlIGV4cGVjdGVkIHJlc3VsdCBpcyBzZWVuLgog
ICAgICAgICAgICA8L3A+CiAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgICAgSW4gcHJhY3Rp
Y2UsIHRoaXMgbGVhZHMgdG8gc2l0dWF0aW9ucyB3aGVyZSBiaWcgY2h1bmtzIG9mIHRoZSBzY3Jl
ZW4gbWF5IG5vdCBiZQogICAgICAgICAgICAgICAgcHJvcGVybHkgcmVkcmF3bi4KICAgICAgICAg
ICAgPC9wPgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIEludGVyZXN0aW5nbHksIGlm
IHRoZSB0aW1lb3V0IGlzIHJlZHVjZWQgZnJvbSAyMDAwbXMgdG8gMW1zLCB0aGUgcGFnZSByZW5k
ZXJzIGNvcnJlY3RseS4KICAgICAgICAgICAgPC9wPgogICAgICAgIDwvZGl2PgogICAgPC9ib2R5
Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>