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/subpixel-offset-scaled-transform.html

Issue 2847873002: Don't pass subpixel offsets through non-translation transforms (Closed)
Patch Set: - Created 3 years, 8 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: third_party/WebKit/LayoutTests/paint/invalidation/subpixel-offset-scaled-transform.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/subpixel-offset-scaled-transform.html b/third_party/WebKit/LayoutTests/paint/invalidation/subpixel-offset-scaled-transform.html
new file mode 100644
index 0000000000000000000000000000000000000000..21e8d6a31016b515becc004dc70619f40116182d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/subpixel-offset-scaled-transform.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+.container { position: relative; width: 0; height: 0; }
+.scale { transform-origin: 0 0; transform: scale(40); }
+.child { width: 1px; height: 1px; background: blue; position: relative; left: 0.4px }
+</style>
+<div class="container scale">
+ <div class="child"></div>
+</div>
+<div class="container" style="top: 50px">
+ <div class="child scale"></div>
+</div>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ for (var container of document.getElementsByClassName('container'))
+ container.style.left = '0.3px';
+}
+onload = runRepaintAndPixelTest;
+</script>

Powered by Google App Engine
This is Rietveld 408576698