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

Unified Diff: LayoutTests/svg/as-image/image-change-with-equal-sizes-expected.html

Issue 23890043: Update image content rect on src changes even if intrinsic size matches (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/image-change-with-equal-sizes-expected.html
diff --git a/LayoutTests/svg/as-image/image-change-with-equal-sizes-expected.html b/LayoutTests/svg/as-image/image-change-with-equal-sizes-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..92a03b8eab3faf772f9bb1fd4d7e7c62d59b2af2
--- /dev/null
+++ b/LayoutTests/svg/as-image/image-change-with-equal-sizes-expected.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+ crbug.com/269946: This test passes if there are two green squares with the same sizes.<br/>
+ <img id="image1" width="100px" height="100px">
+ <img id="image2" width="100px" height="100px">
+
+ <script>
+ var greenSquare = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPg0KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmVlbiIvPg0KPC9zdmc+DQo=';
+ document.getElementById('image1').src = greenSquare;
+ document.getElementById('image2').src = greenSquare;
+ </script>
+</body>
+</html>
+
« no previous file with comments | « LayoutTests/svg/as-image/image-change-with-equal-sizes.html ('k') | LayoutTests/svg/as-image/resources/200x200-blue-rect.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698