Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvases should reset their contents when width or height is set #3613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 26, 2024

  1. Canvases should reset their contents when width or height is set

    even if the sizes are the same.
    
    Note: Canvas 2D does this. There are various issues related to
    requestAnimationFrame and ResizeObserver that this affects. It
    would probably be best of all the APIs did the same thing so that
    the workarounds for resizing the canvas are the same across APIs
    
    Safari passes this test, Firefox and Chrome fail
    greggman committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    7ecb629 View commit details
    Browse the repository at this point in the history