Skip to content

Commit f3b9982

Browse files
committed
[css-color-4] restrict type of ICC profile, fix #6024
1 parent ef48401 commit f3b9982

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-color-4/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,10 +3744,22 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
37443744

37453745
The '@color-profile/src' descriptor specifies the URL to retrieve the color-profile information from.
37463746

3747+
The retrieved ICC profile is valid if
3748+
3749+
- it can be parsed as an ICC Profile
3750+
3751+
- it is an Input, Display, Output, or ColorSpace ICC profile. (Abstract, DeviceLink, and NamedColor ICC Profiles must not be used).
3752+
3753+
If the profile is not valid, all CSS colors
3754+
which reference this profile
3755+
are <a>invalid color</a>s.
3756+
37473757
Note: The Internet Media Type ("MIME type")
37483758
for ICC profiles is
37493759
<a href="https://www.iana.org/assignments/media-types/application/vnd.iccprofile">application/vnd.iccprofile</a>.
37503760

3761+
3762+
37513763
<!-- should we add a format field to this descriptor, like with font-face src? it is always ICC format
37523764
in practice, but that could change in the future. or we could add format later, once there is
37533765
a need, and make the default ICC if not specified -->

0 commit comments

Comments
 (0)