GoogleChrome / GoogleChrome/webdev-infra
Policy/linting for {% Video %} tag embeds?
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
The `{% Video %}` embed being added to a docs page at https://github.com/GoogleChrome/developer.chrome.com/pull/2143 seems like it could lead to a bad experience for users:
- We allow an embedder to set `autoplay` regardless of the size of the underlying video. The video itself is 17.2mb, which is much smaller than an animated GIF would be, but still a much larger download that you'd expect when you visit a docs page. I believe our media uploader supports files up to 25mb.
- We don't do anything that I can see to respect [`prefers-reduced-motion`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) or [`prefers-reduced-data`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-data).
Some of these might be addressable via code changes, and some might be addressable via linting rules (i.e. only allow autoplay when the video is is smaller than some threshold).
Contributor guide
Assessment
This issue has not been assessed yet.