Re: [csswg-drafts] [css-color-adjust-1] Define what happens to SVG in forced colors mode (#3855)

Setting `forced-color-adjust: none` on SVG elements by default would _break_ any SVG that uses `currentColor` for accessibility purposes (to intentionally sync with any forced color changes).  So that's a definite no-go.

That said, I wouldn't recommend that user agents directly adjust any colors on SVG other than for text, and they should only adjust text colors if they are adding in the glyph backplate effect to preserve contrast.

(Authors could of course use the media query & system colors to create a color scheme for data viz or icons that respects the user's palette while still going beyond what `currentColor` can do.  See [Eric Bailey's CSS-Tricks article](https://css-tricks.com/accessible-svgs-high-contrast-mode/) for examples.)

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

Received on Saturday, 20 April 2019 02:01:47 UTC