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

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: use runRepaintAndPixelTest 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..83577800cbed067be972440b4d30a65767147f95
--- /dev/null
+++ b/LayoutTests/svg/as-image/set-img-height.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<head>
+ <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
+ <style>
+ #scaleMe {
+ width:100px;
+ height:200px;
+ background: yellow;
+ }
+ </style>
+</head>
+<body onload="runRepaintAndPixelTest()">
+<script>
+function repaintTest() {
+ document.getElementById("scaleMe").style.height="100px";
+}
+</script>
+<div>
+ <img id="scaleMe" src="resources/circle-200px-none.svg">
+</div>
+</body>
« no previous file with comments | « LayoutTests/svg/as-image/resources/circle-200px-none.svg ('k') | LayoutTests/svg/as-image/set-img-height-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698