Skip to content

Commit b430ee2

Browse files
committed
[css-color-4][editorial] Fix Bikeshed errors.
1 parent e871081 commit b430ee2

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

css-color-4/Overview.bs

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Complain About: accidental-2119 true
2121
Inline Github Issues: title
2222
Default Highlight: css
2323
WPT Path Prefix: css/css-color/
24+
WPT Display: closed
2425
</pre>
2526

2627
<pre class='ignored-specs'>
@@ -593,19 +594,27 @@ Resolving <<color>> Values</h3>
593594
as specified in [[#device-cmyk]].
594595

595596
<div class="example" id="ex-device-cmyk-used">
596-
<p>For example, </p>
597-
<pre class="lang-css"><span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> device-cmyk(0% 70% 20% 0%)</pre>
598-
<p>
599-
has the specified and actual value
600-
</p>
601-
<pre class="lang-css"><span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> device-cmyk(0 0.7 0.2 0)</pre>
602-
<p>
603-
and will, if the implementation understands ICC profiles
604-
and has the recommended profile installed,
605-
have the used value
606-
</p>
607-
<pre class="lang-css"><span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> lab(63.673% 51.577 5.811)</pre>
608-
<p class="note">As with all colors, the used value is not available to script.</p>
597+
For example,
598+
599+
<pre class="lang-css">
600+
<span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> device-cmyk(0% 70% 20% 0%)
601+
</pre>
602+
603+
has the specified and actual value
604+
605+
<pre class="lang-css">
606+
<span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> device-cmyk(0 0.7 0.2 0)
607+
</pre>
608+
609+
and will, if the implementation understands ICC profiles
610+
and has an appropriate profile installed,
611+
have the used value
612+
613+
<pre class="lang-css">
614+
<span class="swatch" style="--color: rgb(93.124%, 44.098%, 57.491%)"></span> lab(63.673% 51.577 5.811)
615+
</pre>
616+
617+
Note: As with all colors, the used value is not available to script.
609618
</div>
610619

611620
<h4 id="resolving-other-colors">Resolving other colors</h4>
@@ -3740,7 +3749,7 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
37403749
</pre>
37413750

37423751
<a>Color profiles</a> contain “rendering intents”,
3743-
which define how to map their color to smaller gamuts than they're defined over.
3752+
which define how to <dfn>gamut-map</dfn> their color to smaller gamuts than they're defined over.
37443753
Often a profile will contain only a single intent,
37453754
but when there are multiple,
37463755
the 'rendering-intent' descriptor chooses one of them to use.
@@ -3756,7 +3765,7 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
37563765
gamut are mapped to colors on the gamut boundary using a variety of
37573766
different methods.
37583767

3759-
Note: the media-relative colorimetric rendering intent is
3768+
The media-relative colorimetric rendering intent is
37603769
often used with black point compensation, where the source medium black point
37613770
is mapped to the destination medium black point as well.
37623771
This method must map the source white point to the destination white point. If
@@ -3794,7 +3803,7 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
37943803
reproduction. They will not attempt to correct errors in the source image.
37953804

37963805
Note: With v2 ICC profiles there is no specified perceptual reference medium,
3797-
which can cause interoperability problems. When v2 ICC profiles are used it may
3806+
which can cause interoperability problems. When v2 ICC profiles are used it can
37983807
be safer to use the media-relative colorimetric rendering intent with black
37993808
point compensation, instead of the perceptual rendering intent, unless the
38003809
specific source and destination profiles to be used have been checked to ensure
@@ -4101,8 +4110,8 @@ Device-dependent CMYK Colors: the ''device-cmyk()'' function</h2>
41014110
it is useful to express CMYK colors
41024111
in a device-dependent way.
41034112

4104-
Note: because the actual resulting color may be unknown,
4105-
CSS processors may attempt to approximate it.
4113+
Note: Because the actual resulting color can be unknown,
4114+
CSS processors might attempt to approximate it.
41064115
This approximation is likely to be visually very far from the actual printed result.
41074116

41084117
The ''device-cmyk()'' function allows authors to specify a color in this way:
@@ -4523,7 +4532,7 @@ Hue interpolation</h3>
45234532

45244533
<h4 id="hue-shorter">''shorter''</h4>
45254534

4526-
Angles are adjusted so that θ₂ - θ₁ ∈ [-180, 180]. In pseudo-Javascript:
4535+
Angles are adjusted so that |θ₂ - θ₁|[-180, 180]. In pseudo-Javascript:
45274536
<pre>
45284537
if (θ₂ - θ₁ > 180) {
45294538
θ₁ += 360;
@@ -4547,7 +4556,7 @@ Hue interpolation</h3>
45474556

45484557
<h4 id="hue-increasing">''increasing''</h4>
45494558

4550-
Angles are adjusted so that θ₂ - θ₁ ∈ [0, 360). In pseudo-Javascript:
4559+
Angles are adjusted so that |θ₂ - θ₁| ∈ [0, 360). In pseudo-Javascript:
45514560
<pre>
45524561
if (θ₂ < θ₁) {
45534562
θ₂ += 360;
@@ -4556,7 +4565,7 @@ Hue interpolation</h3>
45564565

45574566
<h4 id="hue-decreasing">''decreasing''</h4>
45584567

4559-
Angles are adjusted so that θ₂ - θ₁ ∈ (-360, 0]. In pseudo-Javascript:
4568+
Angles are adjusted so that |θ₂ - θ₁| ∈ (-360, 0]. In pseudo-Javascript:
45604569
<pre>
45614570
if (θ₁ < θ₂) {
45624571
θ₁ += 360;

0 commit comments

Comments
 (0)