naturalHeight
and naturalWidth
property of HTMLImageElement
object is not mentioned in mozilla website Link
Although both properties works fine in Firefox but i don't see this in documentation.
Is it a deprecated property or new in HTML5?
Can someone give me a link where these properties are defined in standard?
Definitely not deprecated. Checking the HTML5 spec for the img
element, we can see:
The IDL attributes naturalWidth and naturalHeight must return the intrinsic width and height of the image, in CSS pixels, if the image is available, or else 0. [CSS]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With