This is regular body text. It should be CanvasText in forced colors mode.
This text should be black in forced colors mode because forced-color-adjust
is auto. The background color should be yellow because the default
highlighted colors should not be overridden in forced colors mode.
This text should be orange in forced colors mode because
forced-color-adjust is none. The background color should be purple because
forced-color-adjust is none.
This text should be orange in forced colors mode because
although forced-color-adjust is preserve-parent-color, the color value is
neither currentColor nor inherited. The background color should be purple
because preserve-parent-color behaves like none for all properties except
color.
This text should be CanvasText in forced colors mode because
forced-color-adjust is preserve-parent-color and we are inheriting from its
parent. The background color should be purple because preserve-parent-color
behaves like none for all properties except color.
This text should be CanvasText in forced colors mode because
forced-color-adjust is preserve-parent-color and we are inheriting from its
parent. The background color should be purple because preserve-parent-color
behaves like none for all properties except color.
This text should be CanvasText in forced colors mode because
forced-color-adjust is preserve-parent-color and we are inheriting from its
parent. The background color should also be CanvasText because although
forced-color-adjust behaves like none, the computed value of currentColor is
CanvasText.
Should be use VisitedText, and not orange. However, `getComputedStyle()` will
return LinkText for privacy reasons.
This won't pick up color from nested parent as it gets reparented to the
body. It should use the parent's color i.e. CanvasText, and not orange,
because forced-color-adjust is preserve-parent-color and we are inheriting
from its parent. However, `getComputedStyle()` returns the unvisited link
color for privacy reasons, so we should expect this to be the UA's default
link color.
This won't pick up color from nested parent as the it gets reparented to the
body. It should use the visited link color as though we were not in forced
colors because although forced-color-adjust is preserve-parent-color, the
color value is neither currentColor nor inherited. However,
`getComputedStyle()` returns the unvisited link color for privacy reasons,
so we should expect this to be the UA's default link color.