Re: [csswg-drafts] [css-mediaqueries] Inverted-colors media feature can cause problems on semi-transparent images. (#9674)

Semi transparent PNG's are also affected. Also your rule wouldn't cover stuff like srcset, or `<source>`...

In general what you'd want is to only un-invert opaque images. One nice thing of doing it via CSS is that authors can override it if needed, but I'd tend to think that, would I be the one to implement this, maybe pushing it a bit further down and just make it magic / use the engine's knowledge about whether the image is opaque to decide whether to un-invert would be better here?

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


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

Received on Saturday, 20 January 2024 09:00:38 UTC