You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SVG images referenced by img elements in "Secure Animated" mode are expected to inherit the prefers-color-scheme media query context from their embedding document, but in Windows High Contrast mode, they always respond to prefers-color-scheme: light.
Details
According to the Media Queries Level 5 specification, when evaluated in an embedded SVG document using the "Secure Animated" embedding mode, the preferred color scheme must reflect the value of the used color scheme on the embedding node in the embedding document.
However, when Windows High Contrast mode is enabled, SVG images referenced by img elements always respond to prefers-color-scheme: light. The prefers-color-scheme should match the corresponding value when the forced-colors media query is matched.
Problem Summary
SVG images referenced by
img
elements in "Secure Animated" mode are expected to inherit theprefers-color-scheme
media query context from their embedding document, but in Windows High Contrast mode, they always respond toprefers-color-scheme: light
.Details
According to the Media Queries Level 5 specification, when evaluated in an embedded SVG document using the "Secure Animated" embedding mode, the preferred color scheme must reflect the value of the used color scheme on the embedding node in the embedding document.
However, when Windows High Contrast mode is enabled, SVG images referenced by
img
elements always respond toprefers-color-scheme: light
. Theprefers-color-scheme
should match the corresponding value when theforced-colors
media query is matched.Relevant Spec Section
Media Queries Level 5 § 11.5:
Code Example
The following example shows that even when Windows High Contrast mode is enabled, the SVG responds only to
prefers-color-scheme: light
.Proposal
Clarify the specification to ensure that
prefers-color-scheme
matches the corresponding value when theforced-colors
media query is matched.The text was updated successfully, but these errors were encountered: