https://drafts.csswg.org/css-fonts-4/#override-color
If the keys of multiple distinct key/value pairs identify the same color index (either by name or by integer), the first key is used for the purposes of rendering. However, for serialization purposes, both key/value pairs are present.
IMO this seems inconsistent with the usual ways of CSS in which later declarations override earlier ones. For the sake of consistency I suggest to change that to the last indexed override's value prevailing.
Was there some context that I missed for why it was defined this way around?