Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -3771,7 +3771,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#opaque-black">opaque black</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#transparent-black">transparent black</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-srgb">'srgb'</dfn> color space</li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-srgb-linear">'srgb-linear'</dfn> color space</li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#valdef-color-display-p3">'display-p3'</dfn> color space</li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#display-p3-linear-space">'display-p3-linear'</dfn> color space</li>
<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>
<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>
<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>
Expand Down Expand Up @@ -75526,7 +75528,7 @@ interface <dfn interface>OffscreenCanvasRenderingContext2D</dfn> {
<!--en-GB--><h5 id="colour-spaces-and-colour-correction">Color spaces and color space
conversion</h5>

<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>
<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>

<p>The <code>PredefinedColorSpace</code> enumeration is used to specify the <span
data-x="concept-canvas-color-space">color space</span> of the canvas's backing store.</p>
Expand All @@ -75535,10 +75537,18 @@ interface <dfn interface>OffscreenCanvasRenderingContext2D</dfn> {
data-x="dom-PredefinedColorSpace-srgb">srgb</code></dfn>" value indicates the <span>'srgb'</span>
color space.</p>

<p>The "<dfn enum-value for="PredefinedColorSpace"><code
data-x="dom-PredefinedColorSpace-srgb-linear">srgb-linear</code></dfn>" value indicates the
<span>'srgb-linear'</span> color space.</p>

<p>The "<dfn enum-value for="PredefinedColorSpace"><code
data-x="dom-PredefinedColorSpace-display-p3">display-p3</code></dfn>" value indicates the
<span>'display-p3'</span> color space.</p>

<p>The "<dfn enum-value for="PredefinedColorSpace"><code
data-x="dom-PredefinedColorSpace-display-p3-linear">display-p3-linear</code></dfn>" value indicates the
<span>'display-p3-linear'</span> color space.</p>

<p><span data-x="Converting Colors">Color space conversion</span> must be applied to the canvas's
backing store when rendering the canvas to the output device.</p>

Expand Down