Skip to content

Commit 88f01ef

Browse files
Add srgb-linear and display-p3-linear to PredefinedColorSpace
See #11526 for context.
1 parent 0bb6361 commit 88f01ef

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

source

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
37733773
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#opaque-black">opaque black</dfn></li>
37743774
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#transparent-black">transparent black</dfn></li>
37753775
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-srgb">'srgb'</dfn> color space</li>
3776+
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-srgb-linear">'srgb-linear'</dfn> color space</li>
37763777
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-display-p3">'display-p3'</dfn> color space</li>
3778+
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#display-p3-linear-space">'display-p3-linear'</dfn> color space</li>
37773779
<li><dfn data-x-href="https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-relative-colorimetric">'relative-colorimetric'</dfn> rendering intent</li>
37783780
<li><dfn id="parsed-as-a-css-color-value" data-x-href="https://drafts.csswg.org/css-color/#parse-a-css-color-value">parse a CSS &lt;color> value</dfn></li>
37793781
<li><!--en-GB--><dfn id="serialisation-of-a-color" data-x-href="https://drafts.csswg.org/css-color/#serializing-color-values">serialize a CSS &lt;color> value</dfn> including <dfn data-x-href="https://drafts.csswg.org/css-color/#color-serialization-html-compatible-serialization-is-requested">HTML-compatible serialization is requested</dfn></li>
@@ -75583,7 +75585,7 @@ interface <dfn interface>OffscreenCanvasRenderingContext2D</dfn> {
7558375585
<!--en-GB--><h5 id="colour-spaces-and-colour-correction">Color spaces and color space
7558475586
conversion</h5>
7558575587

75586-
<pre><code class="idl">enum <dfn enum>PredefinedColorSpace</dfn> { "<span data-x="dom-PredefinedColorSpace-srgb">srgb</span>", "<span data-x="dom-PredefinedColorSpace-display-p3">display-p3</span>" };</code></pre>
75588+
<pre><code class="idl">enum <dfn enum>PredefinedColorSpace</dfn> { "<span data-x="dom-PredefinedColorSpace-srgb">srgb</span>", "<span data-x="dom-PredefinedColorSpace-srgb-linear">srgb-linear</span>", "<span data-x="dom-PredefinedColorSpace-display-p3">display-p3</span>", "<span data-x="dom-PredefinedColorSpace-display-p3-linear">display-p3-linear</span>" };</code></pre>
7558775589

7558875590
<p>The <code>PredefinedColorSpace</code> enumeration is used to specify the <span
7558975591
data-x="concept-canvas-color-space">color space</span> of the canvas's backing store.</p>
@@ -75592,10 +75594,18 @@ interface <dfn interface>OffscreenCanvasRenderingContext2D</dfn> {
7559275594
data-x="dom-PredefinedColorSpace-srgb">srgb</code></dfn>" value indicates the <span>'srgb'</span>
7559375595
color space.</p>
7559475596

75597+
<p>The "<dfn enum-value for="PredefinedColorSpace"><code
75598+
data-x="dom-PredefinedColorSpace-srgb-linear">srgb-linear</code></dfn>" value indicates the
75599+
<span>'srgb-linear'</span> color space.</p>
75600+
7559575601
<p>The "<dfn enum-value for="PredefinedColorSpace"><code
7559675602
data-x="dom-PredefinedColorSpace-display-p3">display-p3</code></dfn>" value indicates the
7559775603
<span>'display-p3'</span> color space.</p>
7559875604

75605+
<p>The "<dfn enum-value for="PredefinedColorSpace"><code
75606+
data-x="dom-PredefinedColorSpace-display-p3-linear">display-p3-linear</code></dfn>" value indicates the
75607+
<span>'display-p3-linear'</span> color space.</p>
75608+
7559975609
<p><span data-x="Converting Colors">Color space conversion</span> must be applied to the canvas's
7560075610
backing store when rendering the canvas to the output device.</p>
7560175611

0 commit comments

Comments
 (0)