@@ -210,6 +210,36 @@ Image References: the ''url()'' notation {#url-notation}
210
210
it's interpreted as an image.
211
211
</div>
212
212
213
+ ### Image Metadata ### {#url-metadata}
214
+
215
+ Images can contain metadata
216
+ such as resolution and orientation
217
+ which specifies how to render the image.
218
+ Some image formats are flexible in where this metadata can be placed in the file;
219
+ however, if the metadata occurs <em> after</em> the bulk of the actual image data,
220
+ it harms the UA's ability to “progressively decode” the image
221
+ and display it as the image's data streams in.
222
+
223
+ To reduce the impact of this issue:
224
+
225
+ * Authors <em> must</em> produce their image files
226
+ so that such metadata occurs first in the image file.
227
+ (Note: This is the default for most images already.)
228
+ * User agents <em> should</em> ignore any layout-impacting metadata (such as orientation or resolution)
229
+ that occurs after the actual image data begins in the file.
230
+ (Note: This rule does not impact metadata that does not affect layout,
231
+ such as color space information.)
232
+
233
+ If a user agent cannot ignore the metadata based its location in the file
234
+ (for example, if the decoder being used
235
+ does not report where in the file the metadata was located),
236
+ it <em> must</em> use the metadata in all cases.
237
+ (In particular, it is not valid
238
+ to use the metadata only when the image is "small"
239
+ and the entire file is downloaded quickly,
240
+ but to ignore it if the image is large
241
+ and the metadata isn't downloaded until well after the image starts being displayed.)
242
+
213
243
214
244
<!--
215
245
██████ ████████ ███ ████████ ████ ████████ ██ ██ ████████ ██████
@@ -1565,6 +1595,8 @@ Image Processing {#image-processing}
1565
1595
If there is no orientation specified in its metadata,
1566
1596
this value computes to ''image-orientation/none'' .
1567
1597
1598
+ Note: [[#url-metadata]] imposes some restrictions on what metadata can be used.
1599
+
1568
1600
<dt> <dfn lt="<angle>|flip|<angle> || flip"><<angle>> || flip</dfn>
1569
1601
<dd>
1570
1602
Positive <<angle>> values cause the image to be rotated to the right
0 commit comments