Index: third_party/WebKit/LayoutTests/svg/as-image/synthesized-viewbox-par-width-px.html |
diff --git a/third_party/WebKit/LayoutTests/svg/as-image/synthesized-viewbox-par-width-px.html b/third_party/WebKit/LayoutTests/svg/as-image/synthesized-viewbox-par-width-px.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1df1ff729920211441fe43fad86ab70cec772723 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/as-image/synthesized-viewbox-par-width-px.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<title>Synthesized viewBox/preserveAspectRatio for <img>, intrinsic width</title> |
+<div id="testContainer"></div> |
+<script src="../as-object/sizing/svg-in-object.js"></script> |
+<script src="resources/synthesized-viewbox-par-helper.js"></script> |
+<script> |
+'use strict'; |
+ |
+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
|
+ [[ "svgWidthAttr", [ "200px" ]], |
+ [ "svgHeightAttr", [ "200px", "100%" ]], |
+ [ "placeholderWidthAttr", [ "100px", "auto" ]], |
+ [ "placeholderHeightAttr", [ "100px", "auto" ]]], |
+ function(config) { |
+ document.body.appendChild(makeImage(config)); |
+ }); |
+</script> |