Closed alisonmaher closed 3 years ago
The CSS Working Group just discussed [css-color-adjust] viewport propagation of forced-color-adjust
.
RESOLVED: Add forced-color-adjust propagation to apply to root
@alisonmaher Edits checked in, let us know if it looks OK!
@fantasai Looks good to me, thanks!
We propagate
background-color
from the root/body to the viewport. However, we don't similarly propagateforced-color-adjust
, which can lead to unexpected results in forced colors mode.For example, in the following case, we propagate a
background-color
of red to the viewport in forced colors mode becauseforced-color-adjust
is set tonone
. However, because colors are now forced at used value time, when we re-resolve the background color at the viewport, we end up forcing the background toCanvas
, sinceforced-color-adjust
at the viewport computes toauto
.The proposal would be to propagate
forced-color-adjust
to the viewport, as well, since the used value ofbackground-color
is dependent onforced-color-adjust
.It was resolved in issue #6079 that "No future properties should propagate from body". So, if we decide to only propagate
forced-color-adjust
from the root and not the body, are we ok with the following case resulting in a non-red background in forced colors mode?