commit | bd4c33b5e81d495ecdac66b0375924d9565330cb | [log] [tgz] |
---|---|---|
author | Luna Lu <loonybear@chromium.org> | Wed Aug 29 15:55:42 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 29 15:55:42 2018 |
tree | 90b89527036a2ad14f3ffa14901fd0c747f9937a | |
parent | 808ee09c1dffa440178ad98a0cd99b27165233ad [diff] |
Add intrinsicsize attribute to HTMLImageElement behind a flag Design doc: https://docs.google.com/document/d/1yh_-ayeaFV0EjuR51U641zbrPAB0Baqj6UrC9bT9iqQ/edit#heading=h.y7amr11fn0tb This CL implements "intrinsicsize" attribute for HTMLImageElement. 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 image content. 2. natualWidth and naturalHeight will return the density corrected value of "intrinsicsize". See explainer: https://github.com/ojanvafai/intrinsicsize-attribute/blob/master/README.md BUG: 874629 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I519f01841ee3e761b22874dbecd74f7e6843e2a9 Reviewed-on: https://chromium-review.googlesource.com/1150725 Commit-Queue: Luna Lu <loonybear@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#587132}
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 .