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

Unified Diff: LayoutTests/svg/as-image/set-img-height.html

Issue 210083003: [svg] in img element doesn't render correctly when height is changed dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: LayoutTests/svg/as-image/set-img-height.html
diff --git a/LayoutTests/svg/as-image/set-img-height.html b/LayoutTests/svg/as-image/set-img-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..020186e16f1525613bd0b009d994c7eb9b167969
--- /dev/null
+++ b/LayoutTests/svg/as-image/set-img-height.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<style>
+#scaleMe {
+ width:100px;
+ height:200px;
+}
+</style>
+<body onload="runTest()">
+<script>
+// Begin test async
+if (window.testRunner) {
+ testRunner.waitUntilDone()
+}
+
+function runTest() {
+ setTimeout(function() {
+ document.getElementById("scaleMe").style.height="100px";
+ if (window.testRunner)
+ testRunner.notifyDone();
pdr. 2014/03/24 16:03:58 Indentation
+ }, 100);
pdr. 2014/03/24 16:03:58 I know I sound like a broken record on these setTi
+}
+</script>
+<div>
+ <img id="scaleMe" src="resources/default-profile.svg"/>
+</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698