File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3559,6 +3559,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
3559
3559
height</dfn></li>
3560
3560
<li><dfn data-x-href="https://drafts.csswg.org/css-images/#intrinsic-width">intrinsic
3561
3561
width</dfn></li>
3562
+ <li>The <dfn
3563
+ data-x-href="https://drafts.csswg.org/css-images-3/#the-image-orientation">'image-orientation'</dfn>
3564
+ property</li>
3562
3565
</ul>
3563
3566
3564
3567
<p>The term <dfn data-x-href="https://drafts.csswg.org/css-images-4/#paint-source">paint
@@ -26855,6 +26858,14 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
26855
26858
data-x="'px'">CSS pixels</span>, if the image has <span>intrinsic dimensions</span> and is <i
26856
26859
data-x="img-available">available</i>, or else 0. <ref spec=CSS></p>
26857
26860
26861
+ <div class="note">
26862
+ <p>Since the <span>intrinsic dimensions</span> of an image take into account any
26863
+ orientation specified in its metadata, <code data-x="dom-img-naturalWidth">naturalWidth</code>
26864
+ and <code data-x="dom-img-naturalHeight">naturalHeight</code> reflect the dimensions after
26865
+ applying any rotation <!--non-normative-->required to correctly orient the image, regardless of
26866
+ the value of the <span>'image-orientation'</span> property.</p>
26867
+ </div>
26868
+
26858
26869
<p>The IDL attribute <dfn data-x="dom-img-complete"><code>complete</code></dfn> must return true if
26859
26870
any of the following conditions is true:</p>
26860
26871
You can’t perform that action at this time.
0 commit comments