Re: [csswg-drafts] [css-color-5] For color-mix(), what should happen if you provide an adjuster without a paired percent? (#6046)

The handling of percentages is described in the list following "Arguments are normalized as follows:"

1. When a percentage is specified without any color-adjusters, it is expanded to all adjusters available for the given colorspace plus alpha.

2. If a percentage is omitted and there are no adjusters present on any color arguments, it defaults to 50% (an equal mix of the two colors).

3. Adjusters that are not present on a color default to 0% (i.e. the corresponding components are taken from the other color).

4. Adjusters that are only present on one of the colors default to 100% - p on the second color, where p is the percentage of the corresponding adjuster in the other color.

5. If the sum of corresponding adjusters across all colors is not 100%, percentages are scaled proportionally so that the sum is exactly 100%

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6046#issuecomment-788995038 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 March 2021 15:32:47 UTC