Skip to content

Commit 98785f0

Browse files
committed
deal with omitted XSL WG comment on [0,360)
1 parent 3dc0a93 commit 98785f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

css3-color/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ <h4 id="hsl-color">HSL color values</h4>
537537
Hue is represented as an angle of the color circle (i.e. the rainbow
538538
represented in a circle). This angle is so typically measured in degrees that the unit is implicit in CSS; syntactically, only a &lt;number&gt; is given.
539539
By definition red=0=360, and the other colors are spread around the
540-
circle, so green=120, blue=240, etc. As an angle, it implicitly wraps around such that -120=240 and 480=120. One way an implementation could normalize such an angle x to the range [0,360) is to compute (((x mod 360) + 360) mod 360). Saturation and lightness
540+
circle, so green=120, blue=240, etc. As an angle, it implicitly wraps around such that -120=240 and 480=120. One way an implementation could normalize such an angle x to the range [0,360) (<em>i.e.</em> zero degrees, inclusive, to 360 degrees, exclusive) is to compute (((x mod 360) + 360) mod 360). Saturation and lightness
541541
are represented as percentages. 100% is full saturation, and 0%
542542
is a shade of
543543
gray. 0% lightness is black, 100% lightness is white, and 50%

0 commit comments

Comments
 (0)