commit | 7086e61d83ab978a2e09555fbbc59ca0fedbc11c | [log] [tgz] |
---|---|---|
author | Luna Lu <loonybear@chromium.org> | Thu Aug 30 18:24:08 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 30 18:24:08 2018 |
tree | 0cdec4a8ce850dc44254460f895f2be0106d8df3 | |
parent | dfc67ed9939497fa8ed2565cc1a191489d8a2bcc [diff] |
Add "intrinsicSize" attribute to HTMLVideoElement behind a flag This CL is based on: https://chromium-review.googlesource.com/c/chromium/src/+/1150725 Design doc: https://docs.google.com/document/d/1yh_-ayeaFV0EjuR51U641zbrPAB0Baqj6UrC9bT9iqQ/edit#heading=h.y7amr11fn0tb This CL implements "intrinsicSize" attribute for HTMLVideoElement. The value of "intrinsicSize" overrides the intrinsic size: 1. When no width and (or) height is specified, the value of "intrinsicSize" will be used to determine the area to layout the video content. 2. videoWidth and videoHeight will return the value defined by "intrinsicSize". See explainer: https://github.com/ojanvafai/intrinsicsize-attribute/blob/master/README.md Bug: 874629 Change-Id: If4aeceee2299c50aa7b4c9bdf8fef7cb3e7eea70 Reviewed-on: https://chromium-review.googlesource.com/1191926 Commit-Queue: Luna Lu <loonybear@chromium.org> Reviewed-by: Steve Kobes <skobes@chromium.org> Cr-Commit-Position: refs/heads/master@{#587667}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .