canvas clearRect does not clear if canvas resized

Not reproducible Issue #7628560


Nicholas J.
May 20, 2016
This issue is public.
Found in
  • Microsoft Edge
Standard affected
HTML Canvas 2D Context

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Load a canvas a draw lines on the canvas
  2. Call clearRect() on the canvas
  3. Resize the canvas by manipulating the width/height of the canvas and any holding divs (1:1 pixel ratios)

Expected behaviour:
The canvas should be cleared after resize

Actual behaviour:
The previous draws re-appear causing multiple redraws to pile up.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

    • Hello,

      Thanks for your feedback on Edge. I setup a repro based on your comments below but have not been able to repro the problem regarding the clearing of the canvas.  It seems that it is cleared upon resize.  


      Looking forward to your feedback. 

      All the best,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    • As we have not received an update to this item it will be closed out as not repro.  Should you have more information please feel free to update us with more details.

      Thank you again for providing us with feedback.

    • I am getting the same issue. clearRect is not clearing canvas when I am resizing it in surface pro 4. while same is working in other tabs.

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

    Sign in