Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1334)

Unified Diff: third_party/WebKit/LayoutTests/svg/as-image/synthesized-viewbox-par-width-px.html

Issue 2290173005: Synthesize preserveAspectRatio='none' for non-viewBoxed <img> (Closed)
Patch Set: New baselines Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 &lt;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>

Powered by Google App Engine
This is Rietveld 408576698