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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-via-layout-offset.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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/repaint-via-layout-offset.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-via-layout-offset.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-via-layout-offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..f742027702f6781b0fe1b071f3ef95d7262eb5b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-via-layout-offset.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="../resources/text-based-repaint.js"></script>
+<style>
+#container {
+ position: absolute;
+ z-index: 0;
+ left: 50px;
+ top: 50px;
+}
+
+.child {
+ position: absolute;
+ width: 40px;
+ height: 40px;
+ background-color: red;
+}
+
+.embiggen {
+ width: 50px;
+ height: 50px;
+ background-color: green;
+}
+</style>
+<div style="width:200px; height:200px; transform: translateZ(0px); background-color: lightblue"></div>
+<div id="container">
+ <span class="child"></span>
+ <span class="child"></span>
+</div>
+<script>
+function repaintTest() {
+ document.querySelectorAll('.child')[1].classList.add('embiggen');
+}
+runRepaintAndPixelTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698