Skip to content

Commit 1b0ad96

Browse files
committed
[css-color-5] Make normalization steps an ordered list
1 parent 7cab59d commit 1b0ad96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-color-5/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ in a linear-light-intensity space.
120120

121121
Arguments are normalized as follows:
122122

123-
- When a percentage is specified without any [=color-adjuster=]s,
123+
1. When a percentage is specified without any [=color-adjuster=]s,
124124
it is expanded to all adjusters available for the given [=colorspace=] plus alpha.
125-
- If the percentage is omitted and there are no adjusters present on any color arguments,
125+
2. If a percentage is omitted and there are no adjusters present on any color arguments,
126126
it defaults to 50% (an equal mix of the two colors).
127-
- If only some adjusters are present, the remaining ones default to 0% (i.e. the corresponding components are taken from the first color).
128-
- If the sum of corresponding adjusters across all colors is not 100%, percentages are scaled proportionally so that the sum is exactly 100%.
127+
3. If only some adjusters are present, the remaining ones default to 0% (i.e. the corresponding components are taken from the first color).
128+
4. If the sum of corresponding adjusters across all colors is not 100%, percentages are scaled proportionally so that the sum is exactly 100%.
129129

130130
Issue: Do missing adjusters default to 0% everywhere, or only in the second color?
131131
If the former, we can end up with adjusters that sum to 0% pretty easily.

0 commit comments

Comments
 (0)