Re: [csswg-drafts] [css-color-6] Let's finally settle contrast-color() syntax (#7937)

> Losing the commas means the syntax becomes completely inextensible in the future; see 'counter-reset' for an example of this being bad. I'd strongly advise against it.

FWIW there are no algorithms currently that require metadata per color, though it does give me a bit of pause if we don't have the option for the future.

> > Foreground/background keyword options
> 
> I don't recall if we considered `top`/`bottom`. They're clear, fairly short, already used, and don't have the ordering concern that `over`/`under` do.

I think that's a bit confusing as it implies order in the Y axis, not the Z axis. But feel free to add them to the summary table, the more options we have the better.

> > Should we have a default (background)?
> 
> I think this should be based solely on, when using whatever algo we think is most reasonable (and default, if possible), if the fg/bg decision makes a significant difference in the output. If they're usually pretty close and never terrible when done wrong-way, then sure, make it optional, no need to require something that usually won't matter. But if those aren't both true, then no, we should keep it required.

Right now the only algorithm that even distinguishes them is APCA. @myndex can tell us (briefly please?) how significant the difference is and whether flipping them produces a terrible result or not.



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


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

Received on Saturday, 22 October 2022 20:22:56 UTC