Skip to content

Commit 308664d

Browse files
committed
[css-color-5][editorial] General Tidy, with US Captalization of Headings
1 parent a94a53f commit 308664d

File tree

1 file changed

+81
-52
lines changed

1 file changed

+81
-52
lines changed

css-color-5/Overview.bs

+81-52
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
126126
</wpt>
127127

128128
<h3 id="color-mix-percent-norm">
129-
Percentage normalization
129+
Percentage Normalization
130130
</h3>
131131

132132
Percentages are required to be in the range 0% to 100%. Negative percentages are specifically disallowed. The percentages are normalized as follows:
@@ -179,7 +179,7 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
179179
</div>
180180

181181
<h3 id="color-mix-result">
182-
Calculating the result of color-mix
182+
Calculating the Result of color-mix
183183
</h3>
184184

185185
After normalizing both percentages, the result is produced via the following algorithm:
@@ -287,10 +287,10 @@ and a percentage of 100% returns the same color converted to the specified color
287287
</div>
288288

289289
<h3 id="color-mix-color-space-effect">
290-
Effect of mixing colorspace on color-mix
290+
Effect of Mixing Color Space on color-mix
291291
</h3>
292292

293-
The choice of mixing colorspace can have a large effect on the end result.
293+
The choice of mixing color space can have a large effect on the end result.
294294

295295
<div class="example" id="ex-mix-colorspaces-black-white">
296296
<!--
@@ -401,7 +401,7 @@ The choice of mixing colorspace can have a large effect on the end result.
401401
</div>
402402

403403
<h3 id="color-mix-with-alpha">
404-
Effect of non-unity alpha on color-mix
404+
Effect of Non-Unity Alpha on color-mix
405405
</h3>
406406

407407
So far, all the ''color-mix()'' examples
@@ -742,8 +742,9 @@ which is rgb(52.446% 45.821% 62.953%)
742742
██ ██ ████████ ████████ ██ ██ ██ ████ ███ ████████
743743
-->
744744

745-
Relative color syntax {#relative-colors}
746-
========================================
745+
<h2 id="relative-colors">
746+
Relative Color Syntax
747+
</h2>
747748

748749
In previous levels of this specification,
749750
the color functions could only specify colors in an absolute manner,
@@ -864,7 +865,7 @@ so it has meaningful values for the channels.
864865
which determines how "colorful" the color is.)
865866
</div>
866867

867-
<h3 id="relative-RGB">Relative sRGB colors</h3>
868+
<h3 id="relative-RGB">Relative sRGB Colors</h3>
868869

869870
The grammar of the ''rgb()'' function is extended as follows:
870871

@@ -920,7 +921,7 @@ Relative color syntax is only applicable to the non-legacy RGB syntactic forms.
920921

921922
</div>
922923

923-
<h3 id="relative-HSL">Relative HSL colors</h3>
924+
<h3 id="relative-HSL">Relative HSL Colors</h3>
924925

925926
The grammar of the ''hsl()'' function is extended as follows:
926927

@@ -956,7 +957,7 @@ the allowed [=channel keywords=] are:
956957

957958
Relative color syntax is only applicable to the non-legacy HSL syntactic forms.
958959

959-
<h3 id="relative-HWB">Relative HWB colors</h3>
960+
<h3 id="relative-HWB">Relative HWB Colors</h3>
960961

961962
The grammar of the ''hwb()'' function is extended as follows:
962963

@@ -981,7 +982,7 @@ the allowed [=channel keywords=] are:
981982
after its conversion to sRGB
982983
* <dfn value for="hwb()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
983984

984-
<h3 id="relative-Lab">Relative Lab colors</h3>
985+
<h3 id="relative-Lab">Relative Lab Colors</h3>
985986

986987
The grammar of the ''lab()'' function is extended as follows:
987988

@@ -1025,7 +1026,7 @@ the allowed [=channel keywords=] are:
10251026
</pre>
10261027
</div>
10271028

1028-
<h3 id="relative-OKLab">Relative OKLab colors</h3>
1029+
<h3 id="relative-OKLab">Relative OKLab Colors</h3>
10291030

10301031
The grammar of the ''oklab()'' function is extended as follows:
10311032

@@ -1047,7 +1048,7 @@ the allowed [=channel keywords=] are:
10471048
that correspond to the [=origin color's=] OKLab a and b axes
10481049
* <dfn value for="oklab()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
10491050

1050-
<h3 id="relative-LCH">Relative LCH colors</h3>
1051+
<h3 id="relative-LCH">Relative LCH Colors</h3>
10511052

10521053
The grammar of the ''lch()'' function is extended as follows:
10531054

@@ -1174,7 +1175,7 @@ However, unlike HSL, manipulations are not guaranteed to be in-gamut.
11741175
and the Hue actually changed by 141 degrees not 120.
11751176
</div>
11761177

1177-
<h3 id="relative-OKLCH">Relative OKLCH colors</h3>
1178+
<h3 id="relative-OKLCH">Relative OKLCH Colors</h3>
11781179

11791180
The grammar of the ''oklch()'' function is extended as follows:
11801181

@@ -1227,7 +1228,9 @@ The OKLCH chroma has dropped from 0.251 to 0.117.
12271228

12281229
<!-- Big Text: color() -->
12291230

1230-
<h2 id="color-function">Specifying custom color spaces: the ''color()'' function</h2>
1231+
<h2 id="color-function">
1232+
Specifying Custom Color Spaces: the ''color()'' Function
1233+
</h2>
12311234

12321235
The ''color()'' function allows a color to be specified
12331236
in a particular, specified [=color space=]
@@ -1281,7 +1284,7 @@ The OKLCH chroma has dropped from 0.251 to 0.117.
12811284
or it is [=out of gamut=].
12821285

12831286

1284-
<h3 id="relative-color-function">Relative color-function colors</h3>
1287+
<h3 id="relative-color-function">Relative Color-Function Colors</h3>
12851288

12861289

12871290
Within a [=relative color=] syntax ''color()'' function using <<custom-params>>,
@@ -1416,7 +1419,7 @@ the allowed [=channel keywords=] are:
14161419

14171420

14181421
<h3 id="custom-color">
1419-
Custom color spaces
1422+
Custom Color Spaces
14201423
</h3>
14211424

14221425
CSS allows [=colors=] to be specified by reference to a color profile.
@@ -1476,7 +1479,8 @@ or any other color or monochrome output device which has been characterized.
14761479
-->
14771480

14781481
<h3 id="at-profile">
1479-
Specifying a color profile: the ''@color-profile'' at-rule</h3>
1482+
Specifying a Color Profile: the ''@color-profile'' at-rule
1483+
</h3>
14801484

14811485
The <dfn at-rule id="at-ruledef-profile">@color-profile</dfn> rule
14821486
defines and names a <dfn lt="CSS color profile" local-lt="color profile">color profile</dfn>
@@ -1524,7 +1528,7 @@ or any other color or monochrome output device which has been characterized.
15241528
which reference this profile
15251529
are <a>invalid color</a>s.
15261530

1527-
To <dfn>fetch an external color profile</dfn>, given a
1531+
To <dfn export>fetch an external color profile</dfn>, given a
15281532
''@color-profile'' rule |rule|,
15291533
[=fetch a style resource=] given |rule|'s URL,
15301534
with stylesheet being |rule|'s <a spec=cssom for=CSSRule>parent CSS style sheet</a>,
@@ -1710,8 +1714,9 @@ or any other color or monochrome output device which has been characterized.
17101714
██████ ██ ██ ██ ██ ██
17111715
-->
17121716

1713-
<h3 id="cal-cmyk">
1714-
CSS and print: using calibrated CMYK and other printed color spaces</h3>
1717+
<h3 id="cal-cmyk">
1718+
CSS and Print: Using Calibrated CMYK and Other Printed Color Spaces
1719+
</h3>
17151720

17161721
The ''@color-profile'' at-rule is not restricted to RGB color spaces.
17171722
While screens typically display colors directly in RGB,
@@ -2011,8 +2016,9 @@ or any other color or monochrome output device which has been characterized.
20112016
████████ ████████ ███ ██████ ██ ██ ██ ██ ██
20122017
-->
20132018

2014-
<h2 id='device-cmyk'>
2015-
Uncalibrated CMYK Colors: the ''device-cmyk()'' function</h2>
2019+
<h2 id='device-cmyk'>
2020+
Uncalibrated CMYK Colors: the ''device-cmyk()'' Function
2021+
</h2>
20162022

20172023
Sometimes, when a given printer has not been calibrated,
20182024
but the output for particular ink combinations is known through experimentation,
@@ -2140,8 +2146,9 @@ or any other color or monochrome output device which has been characterized.
21402146
</figcaption>
21412147
</figure>
21422148

2143-
<h3 id='cmyk-rgb'>
2144-
Naively Converting Between Uncalibrated CMYK and sRGB-Based Colors</h3>
2149+
<h3 id='cmyk-rgb'>
2150+
Naively Converting Between Uncalibrated CMYK and sRGB-Based Color
2151+
</h3>
21452152

21462153
To <dfn export lt="naively convert from CMYK to RGBA | naively converted to RGBA">naively convert from CMYK to RGBA</dfn>:
21472154

@@ -2175,9 +2182,12 @@ or any other color or monochrome output device which has been characterized.
21752182
-->
21762183

21772184
<h2 id='resolving-color-values'>
2178-
Resolving <<color>> Values</h2>
2185+
Resolving <<color>> Values
2186+
</h2>
21792187

2180-
<h3 id="resolving-mix">Resolving ''color-mix()'' values</h3>
2188+
<h3 id="resolving-mix">
2189+
Resolving ''color-mix()'' Values
2190+
</h3>
21812191

21822192
If all <<color>> parameters resolve
21832193
to the corresponding colors in their respective color spaces,
@@ -2196,7 +2206,9 @@ or any other color or monochrome output device which has been characterized.
21962206

21972207

21982208

2199-
<h3 id="resolving-device-cmyk-values">Resolving ''device-cmyk'' values</h3>
2209+
<h3 id="resolving-device-cmyk-values">
2210+
Resolving ''device-cmyk'' Values
2211+
</h3>
22002212

22012213
The computed and used value
22022214
is the specified device-specific CMYK color,
@@ -2248,8 +2260,9 @@ or any other color or monochrome output device which has been characterized.
22482260
██████ ████████ ██ ██ ████ ██ ██ ████████
22492261
-->
22502262

2251-
Serialization {#serial}
2252-
=======================
2263+
<h2 id="serial">
2264+
Serialization
2265+
</h2>
22532266

22542267
This section extends [[css-color-4#serializing-color-values]]
22552268
to add serialization of the
@@ -2295,9 +2308,9 @@ if the alpha of the result is exactly 1,
22952308
it is omitted from the serialization;
22962309
an implicit value of 1 (fully opaque) is the default.
22972310

2298-
2299-
Serializing color-mix() {#serial-color-mix}
2300-
-------------------------------------------
2311+
<h3 id="serial-color-mix">
2312+
Serializing color-mix()
2313+
</h3>
23012314

23022315
The serialization of the result of a ''color-mix()'' function
23032316
is a <<color>>,
@@ -2381,9 +2394,9 @@ is the same as that specified in
23812394
"color(srgb 0.8816 0.7545 0.4988)".
23822395
</div>
23832396

2384-
2385-
Serializing relative color functions {#serial-relative-color}
2386-
----------------------------------------------------
2397+
<h3 id="serial-relative-color">
2398+
Serializing Relative Color Functions
2399+
</h3>
23872400

23882401
The serialization of the result of a relative color function
23892402
is a <<color>>,
@@ -2410,8 +2423,9 @@ is the same as that specified in
24102423

24112424
</div>
24122425

2413-
Serializing custom color-spaces {#serial-custom-color}
2414-
-----------------------------------------------------
2426+
<h3 id="serial-custom-color">
2427+
Serializing Custom Color Spaces
2428+
</h3>
24152429

24162430
The precision with which ''color()'' component values are retained,
24172431
and thus the number of significant figures in the serialized value,
@@ -2434,7 +2448,9 @@ unless trailing zeroes have been omitted.
24342448
</div>
24352449

24362450

2437-
<h3 id="serializing-device-cmyk-values">Serializing ''device-cmyk'' values</h3>
2451+
<h3 id="serializing-device-cmyk-values">
2452+
Serializing ''device-cmyk'' Values
2453+
</h3>
24382454

24392455
The serialized form of ''device-cmyk()'' values
24402456
is derived from the [=computed value=]
@@ -2486,7 +2502,8 @@ unless trailing zeroes have been omitted.
24862502
-->
24872503

24882504
<h2 id="sample">
2489-
Default Style Rules</h2>
2505+
Default Style Rules
2506+
</h2>
24902507

24912508
The following stylesheet is informative, not normative. This style sheet could be used by an implementation as part of its default styling of HTML4, HTML5, XHTML1, XHTML1.1, XHTML Basic, and other XHTML Family documents.
24922509

@@ -2512,16 +2529,18 @@ unless trailing zeroes have been omitted.
25122529
██████ ████████ ██████ ███████ ██ ██ ████ ██ ██
25132530
-->
25142531

2515-
Security Considerations {#security}
2516-
===================================
2532+
<h2 id="security">
2533+
Security Considerations
2534+
</h2>
25172535

25182536
This specification adds to CSS the on-demand
25192537
downloading of ICC profiles.
25202538
These do not contain executable code,
25212539
and thus do not constitute an increased security risk.
25222540

2523-
Privacy Considerations {#privacy}
2524-
===================================
2541+
<h2 id="privacy">
2542+
Privacy Considerations
2543+
</h2>
25252544

25262545
No new privacy considerations have been reported on this specification.
25272546

@@ -2537,16 +2556,21 @@ No new privacy considerations have been reported on this specification.
25372556
██████ ██ ██ ██ ██ ██ ██ ██████ ████████ ██████
25382557
-->
25392558

2540-
Changes {#changes}
2541-
=======
2559+
<h2 id="changes">
2560+
Changes
2561+
</h2>
25422562

2543-
<h3 id="changes-20220428">Since the <a href="https://www.w3.org/TR/2022/WD-css-color-5-20220428/">Working Draft of 28 April 2022</a></h3>
2563+
<h3 id="changes-20220428">
2564+
Since the <a href="https://www.w3.org/TR/2022/WD-css-color-5-20220428/">Working Draft of 28 April 2022</a>
2565+
</h3>
25442566

25452567
<ul>
25462568
<li>Moved the color-contrast() function to level 6</li>
25472569
</ul>
25482570

2549-
<h3 id="changes-20211215">Since the <a href="https://www.w3.org/TR/2021/WD-css-color-5-20211215/">Working Draft of 15 December 2021</a></h3>
2571+
<h3 id="changes-20211215">
2572+
Since the <a href="https://www.w3.org/TR/2021/WD-css-color-5-20211215/">Working Draft of 15 December 2021</a>
2573+
</h3>
25502574

25512575
<ul>
25522576
<li>Forgiveness of too many/too few parameters in color() restricted to custom color spaces</li>
@@ -2561,7 +2585,9 @@ Changes {#changes}
25612585
<li>Fixed some spelling errors</li>
25622586
</ul>
25632587

2564-
<h3 id="changes-20210601">Since the <a href="https://www.w3.org/TR/2021/WD-css-color-5-20210601/">Working Draft of 1 June 2021</a></h3>
2588+
<h3 id="changes-20210601">
2589+
Since the <a href="https://www.w3.org/TR/2021/WD-css-color-5-20210601/">Working Draft of 1 June 2021</a>
2590+
</h3>
25652591

25662592
<ul>
25672593
<li>Using &lt;hue-interpolation-method> in rectangular spaces is an error</li>
@@ -2589,7 +2615,9 @@ Changes {#changes}
25892615
<li>Defined serialization of the results of the color-mix, color-contrast, and relative color syntaxes</li>
25902616
</ul>
25912617

2592-
<h3 id="changes-20200303">Since the <a href="https://www.w3.org/TR/2020/WD-css-color-5-20200303/">FPWD of 10 June 2020</a></h3>
2618+
<h3 id="changes-20200303">
2619+
Since the <a href="https://www.w3.org/TR/2020/WD-css-color-5-20200303/">FPWD of 10 June 2020</a>
2620+
</h3>
25932621

25942622
<ul>
25952623
<li>Added relative color syntax for the color() function</li>
@@ -2645,8 +2673,9 @@ Changes {#changes}
26452673
<li>Added section on resolving color-contrast() values</li>
26462674
</ul>
26472675

2648-
<h3 id='changes-from-3'>
2649-
Changes from Colors 4</h3>
2676+
<h3 id='changes-from-4'>
2677+
Changes from CSS Color 4
2678+
</h3>
26502679

26512680
One major change, compared to CSS Color 4,
26522681
is that CSS colors are no longer restricted to

0 commit comments

Comments
 (0)