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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/subpixel-offset-scaled-transform-composited.html

Issue 2868933002: Don't pass subpixel offsets through non-translation transforms (composited case) (Closed)
Patch Set: . Created 3 years, 7 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/compositing/subpixel-offset-scaled-transform-composited.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/subpixel-offset-scaled-transform-composited.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/subpixel-offset-scaled-transform-composited.html
new file mode 100644
index 0000000000000000000000000000000000000000..55edf4ddabca96e9d9a3d22f9ead4345f1f66e18
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/subpixel-offset-scaled-transform-composited.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<style>
+.container { position: relative; width: 0; height: 0; }
+.composited { will-change: transform; }
+.scale { transform-origin: 0 0; transform: scale(40); }
+.child { width: 1px; height: 1px; background: blue; position: relative; left: 0.4px }
+</style>
+<div id="container1" class="container scale">
+ <div id="child1" class="child composited"></div>
+</div>
+<div id="container2" class="container" style="top: 50px">
+ <div id="child2" class="child scale composited"></div>
+</div>
+<div id="container3" class="container scale composited" style="top: 100px">
+ <div id="child3" class="child"></div>
+</div>
+<div id="container4" class="container composited" style="top: 150px">
+ <div id="child4" class="child scale"></div>
+</div>
+<div id="container5" class="container scale composited" style="top: 200px">
+ <div id="child5" class="child composited"></div>
+</div>
+<div id="container6" class="container composited" style="top: 250px">
+ <div id="child6" class="child scale composited"></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