naturalHeight and naturalWidth property new or deprecated?

dom, javascript

Solution

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]

Problem

`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?

Original source