- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Wed, 01 Apr 2020 23:37:17 +0000
- To: public-css-archive@w3.org
We were also asked in the last discussion to provide examples. Here's a quick one that covers the two problematic cases: https://codepen.io/AmeliaBR/pen/dyoLMGd  Both issues are demonstrated using childs of buttons, but they could be childs of any element that has special colors in forced-color mode (e.g., links). One element (svg icon) must have transparent background or it will obscure the text. The other element (pop-up) needs to have a solid background, and that background color must be properly paired with the text color (which in forced-color mode would be the inherited button text color). Here's how it looks in Chromium Edge currently, with various color schemes: 1. One of the standard dark mode contrast schemes. Note that the button white text is used on the pop-up, instead of the main canvas green text, but that the button and canvas backgrounds are both black.  2. One of my custom low-contrast schemes, and then a custom high-contrast I made for this demo. In these cases, the button and canvas backgrounds are different, so you see that Edge is drawing in a backplate around the button text that is not the right color for the button, and similarly the background color used for the pop-up isn't correct. The first one is supposed to have pink text on dark blue buttons, the second one is supposed to have dark blue text on yellow buttons:   -- GitHub Notification of comment by AmeliaBR Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4175#issuecomment-607541377 using your GitHub account
Received on Wednesday, 1 April 2020 23:37:20 UTC