commit | 2e863303d9035d517bfd13de1a5b3388576e4443 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Tue Mar 19 20:16:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 20:16:35 2019 |
tree | be537f748738ee9c539076a2e3178f684525144e | |
parent | 9d7916c3e7595c60ccd55dabcb3846e32e076c43 [diff] |
Preserve explicit dimensions on <use>'d <symbol> Per [1], 'width' and/or 'height' on a <use> override the corresponding values on a referenced <svg> or <symbol>. If no 'width' or 'height' is specified on the <use>, the values set on the referenced elements are retained. Previously we would always set 'width' / 'height' on a referenced <symbol> to '100%' if the <use> did not have any overriding values. Change this to follow the specification and copy the values from the original element as needed - much like what was previously done for referenced <svg> elements. [1] https://svgwg.org/svg2-draft/struct.html#UseLayout Bug: 806289 Change-Id: Iaf595ff88af2865a080f95ccc414e283828c195e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1530883 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#642150}
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 .