diff --git a/source b/source index 76031689569..1bfee1c25f2 100644 --- a/source +++ b/source @@ -3641,6 +3641,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • transparent black
  • +

    The term intrinsic aspect + ratio is used as defined in CSS Image Values and Replaced Content to define + the sizing of replaced content.

    +

    The term paint source is used as defined in CSS Image Values and Replaced Content to define the interaction of certain HTML elements with the CSS 'element()' @@ -115559,6 +115564,22 @@ input[type=image i][align=bottom i], object[align=bottom i] { property">map to the dimension properties 'width' and 'height' on the element respectively.

    +

    The intrinsic aspect ratio for an img element img is + computed as follows:

    + +
      +
    1. If img's current request is available and has an intrinsic aspect ratio, then + use that intrinsic aspect ratio.

    2. + +
    3. If img's width and height attribute values, when parsed using the rules for + parsing dimension values, are both not an error, not a percentage, and non-zero, then use + the ratio resulting from dividing the width attribute value + by the height attribute value.

    4. + +
    5. Otherwise, img has no intrinsic aspect ratio.

    6. +