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

The CSS Working Group just discussed `[css-color-adjust-1] Define what happens to SVG in forced colors mode`, and agreed to the following:

* `RESOLVED: Accept proposed definition`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-color-adjust-1] Define what happens to SVG in forced colors mode<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3855<br>
&lt;dael> Rossen_: I can introduce this<br>
&lt;dael> Rossen_: This issue defined how forced colors supposed to effect SVG. Previous resolution was that forced colors should apply to text element and foreign object element. foriegn object makes sense b/c switching to HTML and all forced color rules apply<br>
&lt;dael> Rossen_: Additonal complication and prop change is what seemed reasonable to expect text element effected by force colors but in effect when text gets forced color applied in addition a background plate should be rendered so overall contrast ratio is as defined through system. THis proved to be ineffective and counter intutive for svg<br>
&lt;dael> Rossen_: A few cases where this might make sense but in general since no svg elements except these are effected by forced colors overall effect becomes incongruent. prop revert including font<br>
&lt;dael> Rossen_: Computing backplate on a path is hard to define and deterimental. You either get bounding box is is more then necessary or you do per glyph which is bad<br>
&lt;dael> Rossen_: Prop: exclude text elemented of svg from being effected by force colors<br>
&lt;dael> chris: Agree, makes most sense<br>
&lt;dael> AmeliaBR: sgtm<br>
&lt;dael> AmeliaBR: Example in spec may be useful about using MQ to make SVG work with high contrast. Default it's best not tot ry and do too much<br>
&lt;dael> AmeliaBR: Do we need to call out foreign object or do colors naturally apply to content inside? Do we need ot add colors to the foreign object itself or enough content inside has the rules if it's html<br>
&lt;dael> fantasai: We should set force color adjust none on SVG root and switch to auto on foreign object<br>
&lt;dael> chris: agree [missed]<br>
&lt;AmeliaBR> +1 to fantasai's solution<br>
&lt;dael> chris: You don't want color value set outside inheriting in. Need to be explicitly set on foreign object<br>
&lt;fantasai> which is what's posted in the issue at https://github.com/w3c/csswg-drafts/issues/3855#issuecomment-485023552 :)<br>
&lt;dael> Rossen_: That's the impl we landed on. +1 to fantasai<br>
&lt;dael> Rossen_: Other suggestions or objections for that resolution?<br>
&lt;dael> RESOLVED: Accept proposed definition<br>
</details>


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

Received on Wednesday, 12 February 2020 18:00:47 UTC