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

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