Re: [csswg-drafts] [css-color] color-contrast() should distinguish foreground and background (#7359)

I *think* this will be the first time that CSS is using keywords to describe relative positions in the paint order.  (If it isn't, we probably want to be consistent with the other cases.)  I think `over` and `under` are a reasonable pair of keywords, but we probably want to think it through carefully, because there's a decent chance we'll want to use the same pair elsewhere.  I think the main question is whether it's confusing to use them both for positions in paint order and [positions in geometry](https://www.w3.org/TR/css-writing-modes-3/#line-relative-direction).

(Perhaps the closest thing in CSS to this that I can think of is the Porter-Duff mode `source-over` which [Compositing and Blending Level 1](https://www.w3.org/TR/compositing-1/) specifies for usage in canvas but not in CSS, and whose opposite (`destination-over`) isn't useful for our purposes here.  But this is consistent with that usage.)

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


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

Received on Wednesday, 15 June 2022 00:05:44 UTC