Skip to content

Check if HTMLImageElement.naturalWidth/naturalHeight respect the device pixel ratio #6769

Closed

Description

@jdm

This should be easy to figure out by using the "device-pixels-ratio" commandline argument: http://mxr.mozilla.org/servo/source/components/util/opts.rs#278 . If the values for a fully loaded image are not different using two different DPRs, we don't support it yet.

Activity

  1. added
    E-less-complex
    on Jul 25, 2015
  2. jdm commented on Jul 25, 2015

    @jdm
    MemberAuthor

    Specifically, this requires creating a webpage that contains an image, waiting until the image is loaded and using JS to display the values of the naturalWidth/naturalHeight properties of that image element.

  3. notriddle commented on Jul 25, 2015

    @notriddle
    Contributor

    Should this go into the test suite, or do you just want an informational report?

  4. jdm commented on Jul 25, 2015

    @jdm
    MemberAuthor

    I don't believe there's a convenient way to test this automatically, since the DPR is not something that can be set programmatically in a cross-browser fashion (which is what the web-platform-tests are designed to be).

  5. added a commit that references this issue on Jul 27, 2015
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

    E-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions