Skip to content

Commit f45cc84

Browse files
committed
[css-color-4] allow device-cmyk as well as dash-ident in @color-profile
1 parent 4097930 commit f45cc84

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

css-color-4/Overview.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -2429,11 +2429,13 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
24292429
It's defined as:
24302430

24312431
<pre class='prod'>
2432-
@color-profile = @color-profile <<dashed-ident>> { <<declaration-list>> }
2432+
@color-profile = @color-profile [<<dashed-ident>> | ''device-cmyk''] { <<declaration-list>> }
24332433
</pre>
24342434

24352435
The <<dashed-ident>> gives the <a>color profile's</a> name,
24362436
by which it will be used in a CSS stylesheet.
2437+
Alternatively, the ''device-cmyk'' keyword means that this color profile
2438+
will be used to resolve colors specified in ''device-cmyk''.
24372439
<!-- All of the predefined colorspace keywords
24382440
(''srgb'', ''display-p3'', ''a98-rgb'', ''prophoto-rgb'', ''rec2020'')
24392441
are excluded from this <<custom-ident>>,
@@ -2979,7 +2981,7 @@ Simple alpha compositing</h3>
29792981
<h2 id="sample">
29802982
Default Style Rules</h2>
29812983

2982-
The following stylesheet is informative, not normative. This style sheet could be used by an implementation as part of its default styling of HTML4, XHTML1, XHTML1.1, XHTML Basic, and other XHTML Family documents.
2984+
The following stylesheet is informative, not normative. This style sheet could be used by an implementation as part of its default styling of HTML4, HTML5, XHTML1, XHTML1.1, XHTML Basic, and other XHTML Family documents.
29832985

29842986
<pre class="lang-css">
29852987
html {
@@ -2989,6 +2991,11 @@ Default Style Rules</h2>
29892991
/* traditional desktop user agent colors for hyperlinks */
29902992
:link { color: blue; }
29912993
:visited { color: purple; }
2994+
2995+
/* a reasonable, conservative default for device-cmyk */
2996+
@color-profile device-cmyk {
2997+
src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc');
2998+
}
29922999
</pre>
29933000

29943001
The default background of the root element must be ''transparent''.

0 commit comments

Comments
 (0)