W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Sat, 20 Apr 2019 02:01:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-485050095-1555725704-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:07 UTC