Setting document.body.style.backgroundColor does not always update.

Not reproducible Issue #1014143

Details

Created
Oct 30, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

To repro A:

  1. Visit https://dl.dropboxusercontent.com/u/40949268/emcc/bugs/fullscreen_canvas.html
  2. Click on “Fullscren native stretch”
  3. Press the Esc key.
  4. Observe the background color of the page.

Observed: The background color of the page is black, like shown in this image: https://dl.dropboxusercontent.com/u/40949268/emcc/bugs/document_body_color_ie.png

Expected: The background color of the page should be white.

Continuing:

  1. Right-click on the black page background and choose "Inspect Element".
  2. Observe that the page redraws itself and the background color snaps to the correct white color.

The fact that opening up the Web inspector redraws the page in the correct color suggests that this is a visual bug and not caused by the JS code on the page.

To repro B: Download the file 'fullscreen_canvas.html’, open it in the text editor and find and remove the following lines:

        // IE11 hack: assigning 'undefined' or an empty string to document.body.style.backgroundColor has no effect, so first assign back the default color
        // before setting the undefined value. Setting undefined value is also important, or otherwise we would later treat that as something that the user
        // had explicitly set so subsequent fullscreen transitions would not set background color properly.
        if (!oldDocumentBackgroundColor) document.body.style.backgroundColor = 'white';

Then repeat the steps above, and note that the same issue appears.

Expected Results:

Setting document.body.style.backgroundColor should update the document background color.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To to “Rossen A.”

      Changed Assigned To from “Rossen A.” to “Greg W.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Greg W.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Status from “Won’t fix” to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in