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

Unified Diff: LayoutTests/svg/custom/svg-image-par-resize.html

Issue 403393002: Always set the container size for a pAR=none image to the intrinsic size (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-image-par-resize-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/svg-image-par-resize.html
diff --git a/LayoutTests/svg/custom/svg-image-par-resize.html b/LayoutTests/svg/custom/svg-image-par-resize.html
new file mode 100644
index 0000000000000000000000000000000000000000..3db87d5b4d941c86c6364a5a224d8249bc79f4da
--- /dev/null
+++ b/LayoutTests/svg/custom/svg-image-par-resize.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
+<script>
+window.testIsAsync = true;
+</script>
+<body onload="runRepaintTest()">
+<svg width="300" height="200">
+ <image width="200" height="200" preserveAspectRatio="none"
+ xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50'><rect width='100%' height='100%' fill='green'/></svg>"></image>
+</svg>
+<script>
+function repaintTest() {
+ document.querySelector('image').setAttribute('width', 100);
+ requestAnimationFrame(function() {
+ requestAnimationFrame(function() {
+ finishRepaintTest();
+ });
+ });
+}
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-image-par-resize-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698