Re: [csswg-drafts] [css-color-5] color-contrast() needs resolution logic if 2 or more have the same contrast (#4732)

Good catch, @argyleink I agree this needs to be specified

Given that the second parameter to `color-contrast` is a list of alternatives, then similar to other lists in CSS I suggest that the earliest match wins. In other words the logic is:

- if the list has one item, it wins
- if the list has two or more items, the first is the temporary winner but the next takes the winning place if it is *better*, and so on down the list

We also need to specify what happens if the first param is not a valid color, or any item of the second param are not valid colors.
- thus, a later item with the same score as an earlier item will not win.

GitHub Notification of comment by svgeesus
Please view or discuss this issue at using your GitHub account

Received on Monday, 3 February 2020 14:18:39 UTC