Re: [csswg-drafts] [css-mediaqueries] Should prefers-color-scheme in SVG images be context-dependent? (#7213)

Maciej pointed out that the HTML spec doesn't actually say that SVG images use "Secure Animated Mode", and that HTML probably needs a central place to define valid image resources as "a non-interactive, optionally animated, image resource that is neither paged nor scripted." https://html.spec.whatwg.org/#image-button-state-(type=image) says "User agents must only display the first page of a multipage resource. User agents must not allow the resource to act in an interactive fashion, but should honor any animation in the resource." but this text should be generalized and shared with things like video poster images in the spec.

If it's clear that SVG images are in "Secure Animated Mode", then I think WebKit is ok allow color-scheme to propagate in.

-- 
GitHub Notification of comment by smfr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7213#issuecomment-1179256753 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 8 July 2022 18:25:12 UTC