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, 27 Apr 2019 21:08:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-487319913-1556399335-sysbot+gh@w3.org>
To sum up my previous comment as a concrete recommendation:

- Remove the [current spec text](https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop) defining UA stylesheet rules about `forced-color-adjust` and SVG elements.

- Add an item to the list of [Properties Affected by Forced Colors Mode](https://drafts.csswg.org/css-color-adjust-1/#forced-colors-properties), `fill: currentColor !important; fill-opacity: 1 !important`, but add a qualification that this should only apply for HTML elements and for SVG `text` elements (or descendants of `text`), and should only apply on SVG if the user agent is able to generate an opposing-color text backplate.

  The exact color of the backplate would as usual depend on the context — e.g., inside a `<button>`, where `currentColor` would be `ButtonText`, the backplate color would be `ButtonFace`.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3855#issuecomment-487319913 using your GitHub account
Received on Saturday, 27 April 2019 21:08:58 UTC

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