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> |