Skip to content

Commit

Permalink
[css-images-3] Remove non-normative note about color space metadata; …
Browse files Browse the repository at this point in the history
…prefer "image" to "file". Fix #10075
  • Loading branch information
svgeesus committed Mar 19, 2024
1 parent 1759178 commit bc4fff0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions css-images-3/Overview.bs
Expand Up @@ -216,7 +216,7 @@ Image References: the ''url()'' notation {#url-notation}
### Image Metadata ### {#url-metadata}

Images can contain metadata
such as resolution and orientation
such as color space, resolution and orientation
which specifies how to render the image.
Some image formats are flexible in where this metadata can be placed in the file;
however, if the metadata occurs <em>after</em> the actual image data,
Expand All @@ -226,21 +226,19 @@ and display it as the image's data streams in.
To reduce the impact of this issue:

* If the choice exists for a given image format,
authors <em>must</em> produce their image files
so that such metadata occurs before the image data in the image file.
authors <em>must</em> produce their images
so that such metadata occurs before the image data in the image.
(Note: This is the default for most images already.)
* User agents <em>should</em> ignore any layout-impacting metadata (such as orientation or resolution)
that occurs after the image data begins in the file.
(Note: This rule does not impact metadata that does not affect layout,
such as color space information.)
that occurs after the image data begins.

If a user agent cannot ignore the metadata based its location in the file
If a user agent cannot ignore the metadata based its location in the image
(for example, if the decoder being used
does not report where in the file the metadata was located),
does not report where in the image the metadata was located),
it <em>must</em> use the metadata in all cases.
(In particular, it is not valid
to use the metadata only when the image is "small"
and the entire file is downloaded quickly,
and the entire image is downloaded quickly,
but to ignore it if the image is large
and the metadata isn't downloaded until well after the image starts being displayed.)

Expand Down

0 comments on commit bc4fff0

Please sign in to comment.