Re: [EXTERNAL] Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-07-19 Thread 'Sara Tang' via blink-dev
Hi Joe,

We are aiming for version 106!

Sara

From: Joe Medley 
Sent: Wednesday, June 22, 2022 10:19 AM
To: Mike Taylor 
Cc: Chris Harrelson ; Daniel Bratell 
; saraztang ; blink-dev 
; Danny Holly ; Sara Tang 
; Alison Maher 
Subject: [EXTERNAL] Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: 
preserve-parent-color

When do you hope to ship?
Joe Medley | Technical Writer, Chrome DevRel | 
jmed...@google.com<mailto:jmed...@google.com> | 816-678-7195
If an API's not documented it doesn't exist.


On Wed, Jun 22, 2022 at 9:54 AM Mike Taylor 
mailto:miketa...@chromium.org>> wrote:
LGTM3

On 6/22/22 12:10 PM, Chris Harrelson wrote:
LGTM2

On Wed, Jun 22, 2022 at 9:05 AM Daniel Bratell 
mailto:bratel...@gmail.com>> wrote:

LGTM1

/Daniel

On 2022-06-15 23:33, Sara Tang wrote:
Hi, reviving this thread as the CSSWG resolution at [css-color] 
[css-color-adjust] Make system colors fully resolve (but flag they were system 
colors) thus reversing the resolution of #3847 · Issue #6773 · w3c/csswg-drafts 
(github.com)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fw3c%2Fcsswg-drafts%2Fissues%2F6773&data=05%7C01%7CSara.Tang%40microsoft.com%7C2e2c7509b08a49a302ec08da54737486%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637915152181641162%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=AsNZxhBdAMngDh6XDFDBx8mkw46PBsTvF%2BDOmuet2GU%3D&reserved=0>
  has been reached (though the standards posiiton for this particular feature 
hasn't been updated yet).  preserve-parent-color value for forced-color-adjust 
CSS property · Issue #591 · mozilla/standards-positions 
(github.com)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla%2Fstandards-positions%2Fissues%2F591&data=05%7C01%7CSara.Tang%40microsoft.com%7C2e2c7509b08a49a302ec08da54737486%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637915152181641162%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bkjvKsuPR1%2B4lA5h12P2Lbf8CROLhigUK2N7soPKNTE%3D&reserved=0>.

To summarize,
  - If both system colors and forced colors were resolved at compute time, 
`preserve-parent-color` would not be needed. This is similar to Mozilla, which 
gets the behavior of `preserve-parent-color` "for free".
  - The resolution of #6773 is to resolve system colors at compute time. Forced 
color are still resolved at used value time.
  - Thus, `preserve-parent-color` is still needed.

I believe we should now be unblocked to ship `preserve-parent-color` :)

Sara


On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:
cause no harm

On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:
Contact emails
sar...@microsoft.com, alison...@microsoft.com

Explainer
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftEdge%2FMSEdgeExplainers%2Fblob%2Fmain%2FAccessibility%2FPreserveParentColor%2Fexplainer.md&data=05%7C01%7CSara.Tang%40microsoft.com%7C2e2c7509b08a49a302ec08da54737486%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637915152181641162%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dPzpoznsy8HMnT8UqKU64yFKMyptnrlg30Q4vQeiuv8%3D&reserved=0>

Specification
https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fcss-color-adjust-1%2F%23forced-color-adjust-prop&data=05%7C01%7CSara.Tang%40microsoft.com%7C2e2c7509b08a49a302ec08da54737486%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637915152181641162%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EIRp3Fswgu0TloTvSnrThit%2FPtNWfSsFjl3Wo4VH4qQ%3D&reserved=0>

Summary

Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS 
property. When Forced Colors Mode is enabled, the ‘color’ property is 
inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the 
‘color’ property will compute to the used value of its parent. Otherwise, 
‘forced-color-adjust: preserve-parent-color' value behaves the same as 
‘forced-color-adjust: none’.

Contact emails
sar...@microsoft.com, alison...@microsoft.com

Explainer
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftEdge%2FMSEdgeExplainers%2Fblob%2Fmain%2FAccessibility%2FPreserveParentColor%2Fexplainer.md&data=05%7C01%7CSara.Tang%40microsoft.com%7C2e2c7509b08a49a302ec08da54737486%7C72f988bf86f141af9

Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-06-22 Thread 'Joe Medley' via blink-dev
When do you hope to ship?
Joe Medley | Technical Writer, Chrome DevRel | jmed...@google.com |
 816-678-7195
*If an API's not documented it doesn't exist.*


On Wed, Jun 22, 2022 at 9:54 AM Mike Taylor  wrote:

> LGTM3
>
> On 6/22/22 12:10 PM, Chris Harrelson wrote:
>
> LGTM2
>
> On Wed, Jun 22, 2022 at 9:05 AM Daniel Bratell 
> wrote:
>
>> LGTM1
>>
>> /Daniel
>> On 2022-06-15 23:33, Sara Tang wrote:
>>
>> Hi, reviving this thread as the CSSWG resolution at [css-color]
>> [css-color-adjust] Make system colors fully resolve (but flag they were
>> system colors) thus reversing the resolution of #3847 · Issue #6773 ·
>> w3c/csswg-drafts (github.com)
>>   has been reached
>> (though the standards posiiton for this particular feature hasn't been
>> updated yet).  preserve-parent-color value for forced-color-adjust CSS
>> property · Issue #591 · mozilla/standards-positions (github.com)
>> .
>>
>> To summarize,
>>   - If both system colors and forced colors were resolved at compute
>> time, `preserve-parent-color` would not be needed. This is similar to
>> Mozilla, which gets the behavior of `preserve-parent-color` "for free".
>>   - The resolution of #6773 is to resolve system colors at compute time.
>> Forced color are still resolved at used value time.
>>   - Thus, `preserve-parent-color` is still needed.
>>
>> I believe we should now be unblocked to ship `preserve-parent-color` :)
>>
>> Sara
>>
>>
>> On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:
>>
>>> cause no harm
>>>
>>> On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:
>>>
 Contact emails sar...@microsoft.com, alison...@microsoft.com

 Explainer
 https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md

 Specification
 https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop

 Summary

 Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS
 property. When Forced Colors Mode is enabled, the ‘color’ property is
 inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the
 ‘color’ property will compute to the used value of its parent. Otherwise,
 ‘forced-color-adjust: preserve-parent-color' value behaves the same as
 ‘forced-color-adjust: none’.

 Contact emails sar...@microsoft.com, alison...@microsoft.com

 Explainer
 https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md

 Specification
 https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop

 Summary

 Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS
 property. When Forced Colors Mode is enabled, the ‘color’ property is
 inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the
 ‘color’ property will compute to the used value of its parent. Otherwise,
 ‘forced-color-adjust: preserve-parent-color' value behaves the same as
 ‘forced-color-adjust: none’.

 *Motivation*

 * ‘forced-color-adjust' is a CSS property that allows developers to opt
 out of Forced Colors Mode.  Previously, there were
 two supported values: ‘auto’ and ‘none’, which can be used to
 control whether or not an element’s styles are adjusted by the UA in Forced
 Colors Mode. A third value, ‘preserve-parent-color', has recently been
 introduced in the spec, which provides similar behavior to ‘none’,
 except that it also allows an element to inherit its parent's
 used ‘color’ value. In other words, ‘preserve-parent-color' provides the
 ability for an element to inherit its parent’s Forced Colors Mode
 adjusted ‘color’ value.  The intention of ‘preserve-parent-color’ is to get
 a reasonable behavior for SVG icons that utilize ‘currentColor’ when
 styling ‘fill’ and ‘stroke’ in Forced Colors Mode,
 as described in [css-color-adjust-1] Spec currently breaks use of
 currentColor for SVG icons in WHCM · Issue #6310 · w3c/csswg-drafts ·
 GitHub .  The use of
 ‘currentColor’ when styling an SVG icon is a common pattern used by authors
 to ensure an accessible experience in Forced Colors Mode. For example, in
 this sample logo,  an author
 would expect the logo to automatically adjust to use the ‘CanvasText’
 system color for ‘fill’ and ‘stroke’ in Forced Colors Mode, as a result of
 setting each to ‘currentColor’.   This behavior,
 however, became broken when we moved from forcing colors at computed value
 time to used value time: [css-color-adjust-1] Is forced color computed or
 used value? · Issue #4915 · w3c/csswg-drafts · GitHub
 

Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-06-22 Thread Mike Taylor

LGTM3

On 6/22/22 12:10 PM, Chris Harrelson wrote:

LGTM2

On Wed, Jun 22, 2022 at 9:05 AM Daniel Bratell  
wrote:


LGTM1

/Daniel

On 2022-06-15 23:33, Sara Tang wrote:

Hi, reviving this thread as the CSSWG resolution at [css-color]
[css-color-adjust] Make system colors fully resolve (but flag
they were system colors) thus reversing the resolution of #3847 ·
Issue #6773 · w3c/csswg-drafts (github.com)
  has been
reached (though the standards posiiton for this particular
feature hasn't been updated yet). preserve-parent-color value for
forced-color-adjust CSS property · Issue #591 ·
mozilla/standards-positions (github.com)
.

To summarize,
  - If both system colors and forced colors were resolved at
compute time, `preserve-parent-color` would not be needed. This
is similar to Mozilla, which gets the behavior of
`preserve-parent-color` "for free".
  - The resolution of #6773 is to resolve system colors at
compute time. Forced color are still resolved at used value time.
  - Thus, `preserve-parent-color` is still needed.

I believe we should now be unblocked to ship
`preserve-parent-color` :)

Sara


On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:

cause no harm

On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang
wrote:


Contact emails

sar...@microsoft.com,alison...@microsoft.com


Explainer


https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md


Specification

https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop


Summary

Adds the ‘preserve-parent-color' value to the
‘forced-color-adjust' CSS property. When Forced Colors
Mode is enabled, the ‘color’ property is inherited, and
we’ve set ‘forced-color-adjust: preserve-parent-color',
the ‘color’ property will compute to the used value of
its parent. Otherwise, ‘forced-color-adjust:
preserve-parent-color' value behaves the same as
‘forced-color-adjust: none’.


Contact emails

sar...@microsoft.com,alison...@microsoft.com


Explainer


https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md


Specification

https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop


Summary

Adds the ‘preserve-parent-color' value to the
‘forced-color-adjust' CSS property. When Forced Colors
Mode is enabled, the ‘color’ property is inherited, and
we’ve set ‘forced-color-adjust: preserve-parent-color',
the ‘color’ property will compute to the used value of
its parent. Otherwise, ‘forced-color-adjust:
preserve-parent-color' value behaves the same as
‘forced-color-adjust: none’.


*Motivation*
*

‘forced-color-adjust'is a CSS property that allows
developers to opt out ofForcedColorsMode.

Previously, there were
twosupportedvalues:‘auto’and‘none’, which can be used to
controlwhether or notan element’s stylesare adjusted by
the UA in Forced Colors Mode.Athird
value,‘preserve-parent-color',has recently been
introducedin the spec, which provides similar behavior to
‘none’, exceptthatit alsoallowsan elementto
inherititsparent's used‘color’value.In other
words,‘preserve-parent-color' provides the ability foran
element to inherit its parent’sForced Colors Mode
adjusted‘color’ value.

The intentionof ‘preserve-parent-color’is to get a
reasonable behavior forSVGicons that utilize
‘currentColor’when styling‘fill’ and ‘stroke’in Forced
Colors Mode, asdescribedin[css-color-adjust-1] Spec
currently breaks use of currentColor for SVG icons in
WHCM · Issue #6310 · w3c/csswg-drafts · GitHub
.

The use of ‘currentColor’when styling anSVG iconis a
common pattern used by authors to ensure an accessible
experiencein Forced Colors Mode.For example,in thissample
logo, an
author would expectthe logo to automatically adjust to
use the‘CanvasText’ system color for ‘fill’ and ‘stroke’
in Forced Colors Mode, as a result of setting each to
‘currentColor’.

   

Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-06-22 Thread Chris Harrelson
LGTM2

On Wed, Jun 22, 2022 at 9:05 AM Daniel Bratell  wrote:

> LGTM1
>
> /Daniel
> On 2022-06-15 23:33, Sara Tang wrote:
>
> Hi, reviving this thread as the CSSWG resolution at [css-color]
> [css-color-adjust] Make system colors fully resolve (but flag they were
> system colors) thus reversing the resolution of #3847 · Issue #6773 ·
> w3c/csswg-drafts (github.com)
>   has been reached
> (though the standards posiiton for this particular feature hasn't been
> updated yet).  preserve-parent-color value for forced-color-adjust CSS
> property · Issue #591 · mozilla/standards-positions (github.com)
> .
>
> To summarize,
>   - If both system colors and forced colors were resolved at compute time,
> `preserve-parent-color` would not be needed. This is similar to Mozilla,
> which gets the behavior of `preserve-parent-color` "for free".
>   - The resolution of #6773 is to resolve system colors at compute time.
> Forced color are still resolved at used value time.
>   - Thus, `preserve-parent-color` is still needed.
>
> I believe we should now be unblocked to ship `preserve-parent-color` :)
>
> Sara
>
>
> On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:
>
>> cause no harm
>>
>> On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:
>>
>>> Contact emails sar...@microsoft.com, alison...@microsoft.com
>>>
>>> Explainer
>>> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>>>
>>> Specification
>>> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>>>
>>> Summary
>>>
>>> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS
>>> property. When Forced Colors Mode is enabled, the ‘color’ property is
>>> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the
>>> ‘color’ property will compute to the used value of its parent. Otherwise,
>>> ‘forced-color-adjust: preserve-parent-color' value behaves the same as
>>> ‘forced-color-adjust: none’.
>>>
>>> Contact emails sar...@microsoft.com, alison...@microsoft.com
>>>
>>> Explainer
>>> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>>>
>>> Specification
>>> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>>>
>>> Summary
>>>
>>> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS
>>> property. When Forced Colors Mode is enabled, the ‘color’ property is
>>> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the
>>> ‘color’ property will compute to the used value of its parent. Otherwise,
>>> ‘forced-color-adjust: preserve-parent-color' value behaves the same as
>>> ‘forced-color-adjust: none’.
>>>
>>> *Motivation*
>>>
>>> * ‘forced-color-adjust' is a CSS property that allows developers to opt
>>> out of Forced Colors Mode.  Previously, there were
>>> two supported values: ‘auto’ and ‘none’, which can be used to
>>> control whether or not an element’s styles are adjusted by the UA in Forced
>>> Colors Mode. A third value, ‘preserve-parent-color', has recently been
>>> introduced in the spec, which provides similar behavior to ‘none’,
>>> except that it also allows an element to inherit its parent's
>>> used ‘color’ value. In other words, ‘preserve-parent-color' provides the
>>> ability for an element to inherit its parent’s Forced Colors Mode
>>> adjusted ‘color’ value.  The intention of ‘preserve-parent-color’ is to get
>>> a reasonable behavior for SVG icons that utilize ‘currentColor’ when
>>> styling ‘fill’ and ‘stroke’ in Forced Colors Mode,
>>> as described in [css-color-adjust-1] Spec currently breaks use of
>>> currentColor for SVG icons in WHCM · Issue #6310 · w3c/csswg-drafts ·
>>> GitHub .  The use of
>>> ‘currentColor’ when styling an SVG icon is a common pattern used by authors
>>> to ensure an accessible experience in Forced Colors Mode. For example, in
>>> this sample logo,  an author
>>> would expect the logo to automatically adjust to use the ‘CanvasText’
>>> system color for ‘fill’ and ‘stroke’ in Forced Colors Mode, as a result of
>>> setting each to ‘currentColor’.   This behavior,
>>> however, became broken when we moved from forcing colors at computed value
>>> time to used value time: [css-color-adjust-1] Is forced color computed or
>>> used value? · Issue #4915 · w3c/csswg-drafts · GitHub
>>> . Instead of inheriting
>>> ‘CanvasText’, as before, the above sample logo
>>>  would inherit the computed
>>> ‘color’ value of its parent, resulting in a logo that is no longer readable
>>> in Forced Colors Mode.  The new ‘preserve-parent-color' value was added to
>>> address this common SVG use case. By changing the d

Re: [blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-06-22 Thread Daniel Bratell

LGTM1

/Daniel

On 2022-06-15 23:33, Sara Tang wrote:
Hi, reviving this thread as the CSSWG resolution at [css-color] 
[css-color-adjust] Make system colors fully resolve (but flag they 
were system colors) thus reversing the resolution of #3847 · Issue 
#6773 · w3c/csswg-drafts (github.com) 
  has been reached 
(though the standards posiiton for this particular feature hasn't been 
updated yet). preserve-parent-color value for forced-color-adjust CSS 
property · Issue #591 · mozilla/standards-positions (github.com) 
.


To summarize,
  - If both system colors and forced colors were resolved at compute 
time, `preserve-parent-color` would not be needed. This is similar to 
Mozilla, which gets the behavior of `preserve-parent-color` "for free".
  - The resolution of #6773 is to resolve system colors at compute 
time. Forced color are still resolved at used value time.

  - Thus, `preserve-parent-color` is still needed.

I believe we should now be unblocked to ship `preserve-parent-color` :)

Sara


On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:

cause no harm

On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:


Contact emails

sar...@microsoft.com,alison...@microsoft.com


Explainer


https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md


Specification

https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop


Summary

Adds the ‘preserve-parent-color' value to the
‘forced-color-adjust' CSS property. When Forced Colors Mode is
enabled, the ‘color’ property is inherited, and we’ve set
‘forced-color-adjust: preserve-parent-color', the ‘color’
property will compute to the used value of its parent.
Otherwise, ‘forced-color-adjust: preserve-parent-color' value
behaves the same as ‘forced-color-adjust: none’.


Contact emails

sar...@microsoft.com,alison...@microsoft.com


Explainer


https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md


Specification

https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop


Summary

Adds the ‘preserve-parent-color' value to the
‘forced-color-adjust' CSS property. When Forced Colors Mode is
enabled, the ‘color’ property is inherited, and we’ve set
‘forced-color-adjust: preserve-parent-color', the ‘color’
property will compute to the used value of its parent.
Otherwise, ‘forced-color-adjust: preserve-parent-color' value
behaves the same as ‘forced-color-adjust: none’.


*Motivation*
*

‘forced-color-adjust'is a CSS property that allows developers
to opt out ofForcedColorsMode.

Previously, there were twosupportedvalues:‘auto’and‘none’,
which can be used to controlwhether or notan element’s
stylesare adjusted by the UA in Forced Colors Mode.Athird
value,‘preserve-parent-color',has recently been introducedin
the spec, which provides similar behavior to ‘none’,
exceptthatit alsoallowsan elementto inherititsparent's
used‘color’value.In other words,‘preserve-parent-color'
provides the ability foran element to inherit its
parent’sForced Colors Mode adjusted‘color’ value.

The intentionof ‘preserve-parent-color’is to get a reasonable
behavior forSVGicons that utilize ‘currentColor’when
styling‘fill’ and ‘stroke’in Forced Colors Mode,
asdescribedin[css-color-adjust-1] Spec currently breaks use of
currentColor for SVG icons in WHCM · Issue #6310 ·
w3c/csswg-drafts · GitHub
.

The use of ‘currentColor’when styling anSVG iconis a common
pattern used by authors to ensure an accessible experiencein
Forced Colors Mode.For example,in thissample logo,
an author would
expectthe logo to automatically adjust to use the‘CanvasText’
system color for ‘fill’ and ‘stroke’ in Forced Colors Mode, as
a result of setting each to ‘currentColor’.

Thisbehavior, however,becamebrokenwhen we movedfrom forcing
colors at computed value time to used value
time:[css-color-adjust-1] Is forced color computed or used
value? · Issue #4915 · w3c/csswg-drafts · GitHub
.Instead of
inheriting ‘CanvasText’, as before, the abovesample logo
would inherit
the computed ‘color’ value of its parent,resulting

[blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2022-06-15 Thread Sara Tang
Hi, reviving this thread as the CSSWG resolution at [css-color] 
[css-color-adjust] Make system colors fully resolve (but flag they were 
system colors) thus reversing the resolution of #3847 · Issue #6773 · 
w3c/csswg-drafts (github.com) 
  has been reached (though 
the standards posiiton for this particular feature hasn't been updated 
yet).  preserve-parent-color value for forced-color-adjust CSS property · 
Issue #591 · mozilla/standards-positions (github.com) 
.

To summarize,
  - If both system colors and forced colors were resolved at compute time, 
`preserve-parent-color` would not be needed. This is similar to Mozilla, 
which gets the behavior of `preserve-parent-color` "for free".
  - The resolution of #6773 is to resolve system colors at compute time. 
Forced color are still resolved at used value time.
  - Thus, `preserve-parent-color` is still needed.

I believe we should now be unblocked to ship `preserve-parent-color` :)

Sara


On Sunday, November 21, 2021 at 1:10:54 PM UTC-8 Danny Holly wrote:

> cause no harm
>
> On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:
>
>> Contact emails sar...@microsoft.com, alison...@microsoft.com
>>
>> Explainer 
>> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>>
>> Specification 
>> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>>
>> Summary 
>>
>> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS 
>> property. When Forced Colors Mode is enabled, the ‘color’ property is 
>> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the 
>> ‘color’ property will compute to the used value of its parent. Otherwise, 
>> ‘forced-color-adjust: preserve-parent-color' value behaves the same as 
>> ‘forced-color-adjust: none’.
>>
>> Contact emails sar...@microsoft.com, alison...@microsoft.com
>>
>> Explainer 
>> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>>
>> Specification 
>> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>>
>> Summary 
>>
>> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS 
>> property. When Forced Colors Mode is enabled, the ‘color’ property is 
>> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the 
>> ‘color’ property will compute to the used value of its parent. Otherwise, 
>> ‘forced-color-adjust: preserve-parent-color' value behaves the same as 
>> ‘forced-color-adjust: none’.
>>
>> *Motivation*
>>
>> * ‘forced-color-adjust' is a CSS property that allows developers to opt 
>> out of Forced Colors Mode.  Previously, there were 
>> two supported values: ‘auto’ and ‘none’, which can be used to 
>> control whether or not an element’s styles are adjusted by the UA in Forced 
>> Colors Mode. A third value, ‘preserve-parent-color', has recently been 
>> introduced in the spec, which provides similar behavior to ‘none’, 
>> except that it also allows an element to inherit its parent's 
>> used ‘color’ value. In other words, ‘preserve-parent-color' provides the 
>> ability for an element to inherit its parent’s Forced Colors Mode 
>> adjusted ‘color’ value.  The intention of ‘preserve-parent-color’ is to get 
>> a reasonable behavior for SVG icons that utilize ‘currentColor’ when 
>> styling ‘fill’ and ‘stroke’ in Forced Colors Mode, 
>> as described in [css-color-adjust-1] Spec currently breaks use of 
>> currentColor for SVG icons in WHCM · Issue #6310 · w3c/csswg-drafts · 
>> GitHub .  The use of 
>> ‘currentColor’ when styling an SVG icon is a common pattern used by authors 
>> to ensure an accessible experience in Forced Colors Mode. For example, in 
>> this sample logo,  an author 
>> would expect the logo to automatically adjust to use the ‘CanvasText’ 
>> system color for ‘fill’ and ‘stroke’ in Forced Colors Mode, as a result of 
>> setting each to ‘currentColor’.   This behavior, 
>> however, became broken when we moved from forcing colors at computed value 
>> time to used value time: [css-color-adjust-1] Is forced color computed or 
>> used value? · Issue #4915 · w3c/csswg-drafts · GitHub 
>> . Instead of inheriting 
>> ‘CanvasText’, as before, the above sample logo 
>>  would inherit the computed 
>> ‘color’ value of its parent, resulting in a logo that is no longer readable 
>> in Forced Colors Mode.  The new ‘preserve-parent-color' value was added to 
>> address this common SVG use case. By changing the default value of 
>> ‘forced-color-adjust’ for SVGs from ‘none’ to ‘preserve-parent-color', SVG 
>> icons that make use of ‘currentColor’ will now inherit the used ‘color’ 
>> value of

[blink-dev] Re: Intent to Ship: forced-color-adjust: preserve-parent-color

2021-11-21 Thread Danny Holly
cause no harm

On Thursday, October 28, 2021 at 4:45:04 PM UTC-5 Sara Tang wrote:

> Contact emails sar...@microsoft.com, alison...@microsoft.com
>
> Explainer 
> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>
> Specification 
> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>
> Summary 
>
> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS 
> property. When Forced Colors Mode is enabled, the ‘color’ property is 
> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the 
> ‘color’ property will compute to the used value of its parent. Otherwise, 
> ‘forced-color-adjust: preserve-parent-color' value behaves the same as 
> ‘forced-color-adjust: none’.
>
> Contact emails sar...@microsoft.com, alison...@microsoft.com
>
> Explainer 
> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/PreserveParentColor/explainer.md
>
> Specification 
> https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop
>
> Summary 
>
> Adds the ‘preserve-parent-color' value to the ‘forced-color-adjust' CSS 
> property. When Forced Colors Mode is enabled, the ‘color’ property is 
> inherited, and we’ve set ‘forced-color-adjust: preserve-parent-color', the 
> ‘color’ property will compute to the used value of its parent. Otherwise, 
> ‘forced-color-adjust: preserve-parent-color' value behaves the same as 
> ‘forced-color-adjust: none’.
>
> *Motivation*
>
> * ‘forced-color-adjust' is a CSS property that allows developers to opt 
> out of Forced Colors Mode.  Previously, there were 
> two supported values: ‘auto’ and ‘none’, which can be used to 
> control whether or not an element’s styles are adjusted by the UA in Forced 
> Colors Mode. A third value, ‘preserve-parent-color', has recently been 
> introduced in the spec, which provides similar behavior to ‘none’, 
> except that it also allows an element to inherit its parent's 
> used ‘color’ value. In other words, ‘preserve-parent-color' provides the 
> ability for an element to inherit its parent’s Forced Colors Mode 
> adjusted ‘color’ value.  The intention of ‘preserve-parent-color’ is to get 
> a reasonable behavior for SVG icons that utilize ‘currentColor’ when 
> styling ‘fill’ and ‘stroke’ in Forced Colors Mode, 
> as described in [css-color-adjust-1] Spec currently breaks use of 
> currentColor for SVG icons in WHCM · Issue #6310 · w3c/csswg-drafts · 
> GitHub .  The use of 
> ‘currentColor’ when styling an SVG icon is a common pattern used by authors 
> to ensure an accessible experience in Forced Colors Mode. For example, in 
> this sample logo,  an author 
> would expect the logo to automatically adjust to use the ‘CanvasText’ 
> system color for ‘fill’ and ‘stroke’ in Forced Colors Mode, as a result of 
> setting each to ‘currentColor’.   This behavior, 
> however, became broken when we moved from forcing colors at computed value 
> time to used value time: [css-color-adjust-1] Is forced color computed or 
> used value? · Issue #4915 · w3c/csswg-drafts · GitHub 
> . Instead of inheriting 
> ‘CanvasText’, as before, the above sample logo 
>  would inherit the computed 
> ‘color’ value of its parent, resulting in a logo that is no longer readable 
> in Forced Colors Mode.  The new ‘preserve-parent-color' value was added to 
> address this common SVG use case. By changing the default value of 
> ‘forced-color-adjust’ for SVGs from ‘none’ to ‘preserve-parent-color', SVG 
> icons that make use of ‘currentColor’ will now inherit the used ‘color’ 
> value of its parent, as expected.  It is important to note that this may 
> break SVGs that expect the opposite inheritance behavior for the ‘color’ 
> property. However, the behavior of `preserve-parent-color` handles the most 
> common SVG use cases, and the behavior better matches legacy 
> implementations of High Contrast Mode. *
>
> Blink component Blink>CSS 
> 
>
> Search tags css , forced 
> , colors 
> , forced-colors 
> , 
> forced-color-adjust 
> , 
> preserve-parent-color 
> 
>
> TAG review https://github.com/w3ctag/design-reviews/issues/681
>
> TAG review status Issues open
>
> Risks 
>
>
> Interoperability and Compatibility 
>
> Interoperability Risks Gecko has shipped a version of Forced Colors Mode 
> without support for ‘forced-color-adjust’. Although there is an open bug 
> for