[w3c/editing] Invalid or identical colors provided to `backColor`/`foreColor`/`hiliteColor` should return `true` instead of `false` (Issue #476)

If the value string provided to `backColor`, `foreColor` or `hiliteColor` is either an invalid CSS color or the current color, the spec states to return false:

https://github.com/w3c/editing/blob/b9fbe88d2319c5667a008804c2364023ce4ccec0/docs/execCommand/index.html#L4201-L4202

As tested in both Firefox and Chrome, we should instead return `true` here.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/476
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/476@github.com>

Received on Thursday, 23 January 2025 09:48:01 UTC