Skip to content

Commit b79e63b

Browse files
committed
[css-color4] Defined handling of tagged images. Fix w3c#286
1 parent 629b25d commit b79e63b

1 file changed

Lines changed: 46 additions & 2 deletions

File tree

css-color-4/Overview.bs

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ spec:css-color-4; type:descriptor; for:@color-profile; text:src
2525
spec:css-color-4; type:dfn; text:colorspace
2626
spec:css-color-4; type:dfn; text:gamut
2727
</pre>
28+
29+
<pre class=biblio>
30+
{
31+
"TIFF": {
32+
"href": "https://www.adobe.io/content/udp/en/open/standards/TIFF/_jcr_content/contentbody/download/file.res/TIFF6.pdf",
33+
"title": "TIFF Revision 6.0",
34+
"date": "3 June 1992"
35+
}
36+
}
37+
</pre>
38+
2839
<link rel="stylesheet" href="style.css" />
2940

3041
<style>
@@ -334,15 +345,48 @@ Accessibility and Conveying Information By Color</h3>
334345
> Color is not used as the only visual means of conveying information,
335346
> indicating an action, prompting a response, or distinguishing a visual element</a>
336347

348+
<h3 id="tagged-images">Color Space of Tagged Images</h3>
349+
350+
An <dfn export>tagged image</dfn> is an image
351+
that is explicitly assigned a color profile,
352+
as defined by the image format.
353+
This is usually done by including an
354+
International Color Consortium (ICC) profile [[!ICC]].
355+
356+
For example JPEG [[JPEG]], PNG [[PNG]] and TIFF [[TIFF]]
357+
all specify a means to embed an ICC profile.
358+
359+
Image formats may also use other, equivalent methods, often for brevity.
360+
361+
For example, PNG specifies a means to explicitly
362+
tag an image as being in the sRGB colorspace,
363+
without including the sRGB ICC profile.
364+
365+
Tagged RGB images,
366+
and tagged images using a transformation of RGB such as YCbCr,
367+
must be treated as being in the specified color space.
368+
369+
For example, when a browser running on a system with a Display P3 monitor
370+
displays an JPEG image
371+
tagged as being in the Adobe® RGB (1998) [[!AdobeRGB]]
372+
colorspace, it must convert the colors
373+
from Adobe® RGB (1998) to Display P3
374+
so that they display correctly.
375+
It must not treat the Adobe® RGB (1998) values
376+
as if they were Display P3 values, which would produce incorrect colors.
377+
337378
<h3 id='untagged'>
338379
Color Spaces of Untagged Colors</h3>
339380

340-
Colors specified in HTML and [=untagged images=] are in the sRGB color space ([[!SRGB]])
381+
Colors specified in HTML,
382+
and [=untagged images=] must be treated
383+
as being in the sRGB color space ([[!SRGB]])
341384
unless otherwise specified.
342385

343386
An <dfn export>untagged image</dfn> is an image that is not explicitly assigned a color profile, as defined by the image format.
344387

345-
Note that this rule does not apply to videos, since untagged video should be presumed to be in an ITU-defined colorspace.
388+
Note that this rule does not apply to untagged videos, since
389+
<dfn export>untagged video</dfn> should be presumed to be in an ITU-defined colorspace.
346390
* At below 720p, it is Recommendation ITU-R BT.601 [[!ITU-R-BT.601]]
347391
* At 720p, it is SMPTE ST 296 (same colorimetry as 709) [[!SMPTE296]]
348392
* At 1080p, it is Recommendation ITU-R BT.709 [[!ITU-R-BT.709]]

0 commit comments

Comments
 (0)