Skip to content

Commit

Permalink
Fix Luke's issue
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Oct 16, 2024
1 parent 2306677 commit 298db78
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3708,6 +3708,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<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>
<li><dfn data-x-href="https://drafts.csswg.org/css-color/#color-conversion">Converting Colors</dfn></li>
<li><dfn id="color-function" data-x-href="https://drafts.csswg.org/css-color/#color-function">'color()'</dfn></li>
</ul>

<p>The following terms are defined in <cite>CSS Images</cite>: <ref>CSSIMAGES</ref></p>
Expand Down Expand Up @@ -50557,6 +50558,14 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
in the <span data-x="attr-input-colorspace-limited-srgb-state">Limited sRGB</span> state:</p>

<ol>
<li><p>Set <var>color</var> to <var>color</var> <span data-x="Converting
Colors">converted</span> to the <span>'srgb'</span> color space.</p></li>

<li><p>Round each of <var>color</var>'s components so they are in the range 0 to 255,
inclusive. Components are to be <a
href="https://drafts.csswg.org/css-values-4/#combine-integers">rounded towards +∞</a>.</p></li>
<!-- This matches similar wording in CSS Color. -->

<li>
<p>If <var>element</var>'s <code data-x="attr-input-alpha">alpha</code> attribute is not
specified, then set <var>htmlCompatible</var> to true.</p>
Expand All @@ -50565,13 +50574,8 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
an earlier version of the color well control.</p>
</li>

<li><p>Set <var>color</var> to <var>color</var> <span data-x="Converting
Colors">converted</span> to the <span>'srgb'</span> color space.</p></li>

<li><p>Round each of <var>color</var>'s components so they are in the range 0 to 255,
inclusive. Components are to be <a
href="https://drafts.csswg.org/css-values-4/#combine-integers">rounded towards +∞</a>.</p></li>
<!-- This matches similar wording in CSS Color. -->
<li><p>Otherwise, set <var>color</var> to <var>color</var> converted to using the
<span>'color()'</span> function.</p></li>
</ol>
</li>

Expand Down

0 comments on commit 298db78

Please sign in to comment.