canvas clearRect does not clear if canvas resized

Not reproducible Issue #7628560

Details

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

Found in build #
13.10586
Reports
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.

Attachments

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.  

      Repro:

      http://jsbin.com/tekusadoke/edit?html,output

      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.

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

    Sign in