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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel.html

Issue 2458233002: Fix under-invalidation on SVG shape/image resize in subpixels (Closed)
Patch Set: - Created 4 years, 1 month 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/paint/invalidation/svg/resize-image-subpixel.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel.html
new file mode 100644
index 0000000000000000000000000000000000000000..3890895cc0a802ac0a3ed5781ca52a7006f80be3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+Tests subpixel resize of SVG image. Passes if the resized image fully covers the red rect.
+<div style="position: absolute; top: 100px; left: 0; transform-origin: 0 0; transform: scale(20)">
+ <svg width="10" height="10">
+ <rect fill="red" width="8.8" height="8"/>
+ <image id="target" href="../../../svg/W3C-SVG-1.1/resources/smiley.png" width="8.1" height="8" preserveAspectRatio="none"/>
+ </svg>
+</div>
+<script src="../../../resources/run-after-layout-and-paint.js"></script>
+<script>
+if (window.internals)
+ internals.settings.setUseDefaultImageInterpolationQuality(true);
+runAfterLayoutAndPaint(function() {
+ target.style.width = '8.8px';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698