Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>Synthesized viewBox/preserveAspectRatio for <img>, intrinsic width</ti tle> | |
| 3 <div id="testContainer"></div> | |
| 4 <script src="../as-object/sizing/svg-in-object.js"></script> | |
| 5 <script src="resources/synthesized-viewbox-par-helper.js"></script> | |
| 6 <script> | |
| 7 'use strict'; | |
| 8 | |
| 9 doCombinationTest( | |
|
davve
2016/09/01 17:46:42
Creative use of that function... :)
fs
2016/09/01 17:57:24
Well, I didn't want to reinvent a framework strong
| |
| 10 [[ "svgWidthAttr", [ "200px" ]], | |
| 11 [ "svgHeightAttr", [ "200px", "100%" ]], | |
| 12 [ "placeholderWidthAttr", [ "100px", "auto" ]], | |
| 13 [ "placeholderHeightAttr", [ "100px", "auto" ]]], | |
| 14 function(config) { | |
| 15 document.body.appendChild(makeImage(config)); | |
| 16 }); | |
| 17 </script> | |
| OLD | NEW |