diff --git a/source b/source index 9155017c896..6c544611254 100644 --- a/source +++ b/source @@ -3800,6 +3800,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
image.naturalHeightThese attributes return the natural dimensions of the image, or 0 if the dimensions are not - known.
+These attributes return the density-corrected natural width and height of the + image, or 0 if the image is not available.
image.completeThe IDL attributes The naturalWidth and naturalHeight must return
- the density-corrected natural width and height of the image, in CSS pixels, if the image has density-corrected natural width and
- height and is available, or else 0. CSS
naturalHeight getter
+ steps are:
+
+ If the image is not available, then return 0.
Return the respective component of the image's density-corrected natural width and + height, in CSS pixels. CSS
Since the density-corrected natural width and height of an image
@@ -32480,25 +32486,36 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ... of an img element img:
Let density be img's current request's current + pixel density.
Let dim be img's current request's preferred - density-corrected dimensions.
+Let dimensions be img's current request's + preferred density-corrected dimensions.
The preferred density-corrected dimensions are set in the prepare an image for presentation algorithm based on meta information in the image.
If dim is null, set dim to img's natural - dimensions.
If dimensions is not null, then set + dimensions's width to dimensions's width divided by + density, set dimensions's height to dimensions's height + divided by density, and return dimensions.
Let intrinsicWidth, intrinsicHeight, and + intrinsicRatio be img's intrinsic + width, intrinsic height, and intrinsic aspect ratio, if any, respectively.
Set dim's width to dim's width divided by img's - current request's current pixel density.
If intrinsicWidth is not absent, then set intrinsicWidth to + intrinsicWidth divided by density.
Set dim's height to dim's height divided by img's - current request's current pixel density.
If intrinsicHeight is not absent, then set intrinsicHeight to + intrinsicHeight divided by density.
Return dim.
Return the result of applying the default sizing algorithm with + intrinsicWidth, intrinsicHeight, and intrinsicRatio, using a + default object size of 300 by 150.