Skip to content

Commit 986b766

Browse files
committed
[css-color] inline issues
1 parent d180b3c commit 986b766

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

css-color/Overview.bs

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,16 +1584,19 @@ Device-independent Colors: Lab and LCH</h2>
15841584

15851585
The first argument specifies the CIE Lightness, the second argument is a and the third is b.
15861586
L is constrained to the range [0, 100] while a and b are signed values and
1587-
theoretically unbounded but in practice do not exceed ±160.
1587+
theoretically unbounded (but in practice do not exceed ±160).
15881588

15891589
<pre class='prod'>
15901590
<dfn>lch()</dfn> = lch( <<number>> , <<number>> , <<number>> )
15911591
</pre>
15921592

15931593
The first argument specifies the CIE Lightness, the second argument is C and the third is H.
1594-
L is constrained to the range [0, 100]. C is an unsigned number while H is constrained
1594+
L is constrained to the range [0, 100]. C is an unsigned number, while H is constrained
15951595
to the range [0, 360).
1596-
<!-- todo, add handling for out of range numbers. Clip L, wrap H? -->
1596+
1597+
<p class="issue">Need to define handling for out of range numbers.
1598+
Clip L, wrap H? Have also seen L up to 400, specifically
1599+
for high dynamic range situations.</p>
15971600

15981601
<h3 id='rgb-to-lab'>
15991602
Converting sRGB colors to Lab colors</h3>
@@ -1609,6 +1612,9 @@ but the first step are linear calculations and can be combined.</p>
16091612
<li>Convert D50-adapted XYZ to Lab
16101613
</ol>
16111614

1615+
<p class="issue">There is sample JavaScript code in <a href="conversions.js">conversions.js</a>
1616+
to do these conversions. Is that sufficient to document the steps needed?</p>
1617+
16121618
<h3 id='lab-to-rgb'>
16131619
Converting Lab colors to sRGB colors</h3>
16141620

@@ -1652,8 +1658,8 @@ When the measured physical characteristics (such as the chromaticities of the
16521658
primary colors it uses, or the colors produced in response to a given set of inputs)
16531659
of a color space or a color-producing device are known, it is said to be <em>characterised</em>.
16541660
This characterization information is stored in a <em>profile</em>. The most common type of
1655-
color profile is defined by the International Color Consortium (ICC).
1656-
<!-- insert ref. ICC 4.2 specification? -->
1661+
color profile is defined by the International Color Consortium (ICC) [[!ICC]].
1662+
16571663

16581664
If in addition adjustments have
16591665
been made so that a device meets calibration targets such as white point, neutrality of greys,
@@ -1664,10 +1670,11 @@ calibrated CMYK printer, or an RGB colorspace (such as ProPhoto <!-- ref -->,
16641670
<!-- would be good to mention AdobeRGB 1998 here too, need to check trademark and copyright issues first -->
16651671
widely used by
16661672
photographers), or any other color or monochrome output defice which has been characterized.
1667-
In addition, for conveninnce, CSS provides two predefined RGB color spaces - DCI P3, which is a
1668-
wide gamut space typical of current wide-gamut monitors, and Rec.2020 which is a ultra-wide
1673+
In addition, for conveninnce, CSS provides two predefined RGB color spaces - DCI P3 [[!DCI-P3]],
1674+
which is a wide gamut space typical of current wide-gamut monitors, and
1675+
Rec.2020 [[[!Rec.2020]] which is a ultra-wide
16691676
gamut space capable of representing almost all visible real-world colors. Both are broadcast industry standards.
1670-
<!-- refs. -->
1677+
16711678

16721679
<div class='example'>
16731680
This example specifies four profiled colors: for a standard CMYK press, for a wide-gamut
@@ -1699,7 +1706,7 @@ The color function takes an indentifier as the first parameter, followed by as m
16991706
numerical parameters as are needed (three for an RGB colorspace, four for CMYK,
17001707
one for greyscale, and so on). The identifier is either one of the predefined spaces
17011708
(<i>P3</i> or <i>Rec2020</i>) or the name of a profile.
1702-
<!-- quoted strings? or unquoted? -->
1709+
17031710

17041711
<pre class='prod'>
17051712
<dfn>color()</dfn> = color( <<ident>> , <<number>>+ )
@@ -1725,6 +1732,11 @@ The DCI P3 [[!DCI-P3]] colorspace has the following characteristics:
17251732
<tr><th>Transfer function</th><td>1/2.6</td></tr>
17261733
</table>
17271734

1735+
<p class="issue">The defining spec for DCI-P3 is not freely available. It costs USD 240.
1736+
There is a Wikipedia article, which is non-authoritative and of unknown accuracy
1737+
(particularly for the transfer function and viewing conditions).
1738+
</p>
1739+
17281740
The ITU Rec.2020 [[!Rec.2020]]
17291741
colorspace has the following characteristics:
17301742

0 commit comments

Comments
 (0)