You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check if HTMLImageElement.naturalWidth/naturalHeight respect the device pixel ratio #6769
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.
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).
Activity
jdm commentedon Jul 25, 2015
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.
notriddle commentedon Jul 25, 2015
Should this go into the test suite, or do you just want an informational report?
jdm commentedon Jul 25, 2015
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).
Auto merge of #6774 - notriddle:master, r=jdm
Check if naturalWidth / naturalHeight works w/ DPR
Check if naturalWidth / naturalHeight works w/ DPR