Skip to content

Commit bf78a61

Browse files
committed
[css-color-4] Added hue normalization examples, fix #10432
1 parent b530ae0 commit bf78a61

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-color-4/Overview.bs

+13
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,19 @@ and is the [=canonical unit=].
10621062
This number is normalized
10631063
to the range [0,360).
10641064

1065+
<div class="example" id="example-hue-normalization">
1066+
For example, in <span class="swatch" style="--color: #000"></span> ''hsl(-540 0 0)''
1067+
or <span class="swatch" style="--color: #000"></span> ''hsl(540 0 0)'',
1068+
the <<hue>> component is normalized to 180 degrees.
1069+
1070+
In <span class="swatch" style="--color: #000"></span> ''hsl(360 0 0)''
1071+
the <<hue>> component is normalized to 0 degrees.
1072+
1073+
In <span class="swatch" style="--color: #000"></span> ''hsl(calc(-infinity) 0 0)''
1074+
or <span class="swatch" style="--color: #000"></span> ''hsl(calc(infinity) 0 0)'',
1075+
the <<hue>> component is again normalized to 0 degrees.
1076+
</div>
1077+
10651078
Note: The angles and spacing
10661079
corresponding to particular hues
10671080
depend on the color space.

0 commit comments

Comments
 (0)