[Webkit-unassigned] [Bug 150443] New: <img>.naturalWidth should return the density-corrected intrinsic width
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 22 03:39:04 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=150443
Bug ID: 150443
Summary: <img>.naturalWidth should return the density-corrected
intrinsic width
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zcorpan at gmail.com
Consider
<img srcset="http://placehold.it/240 2x" onload="alert(this.naturalWidth)">
Per spec it should alert 120. WebKit alerts 240. Gecko and Blink match the spec, I don't know about Edge.
https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-naturalwidth
I would recommend waiting with fixing this bug until .currentSrc is implemented, since exploiting this bug can be a poor man's .currentSrc; see http://stackoverflow.com/questions/33231426/get-the-currentsrc-of-responsive-image-on-safari/33278821
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151022/2858085c/attachment.html>
More information about the webkit-unassigned
mailing list