Skip to content

Initial canvas creation relies on DOM width and height attributes, but layout relies on computed width and height #10705

Closed

Description

@jdm

Tests like texture-size-limit.html in the webgl suite use <canvas id="example" width="32" height="32" style="width: 40px; height: 40px;"></canvas> and this screws us up in a delightful fashion, since HTMLCanvasElement::get_size uses Width() and Height(). This is a cause of assertions where the pixel data retrieved from webgl doesn't match the stride * height that layout expects.

cc @emilio

Activity

  1. added
    A-content/dom
    I-panic
    on Apr 19, 2016
  2. Ms2ger commented on Apr 19, 2016

    @Ms2ger
    Contributor

    We're unfortunately supposed to scale for code like that.

  3. added 3 commits that reference this issue on Apr 21, 2016
    df0aa8f
    ad8df0f
    0e0e902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domI-panic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions