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

Unified Diff: LayoutTests/compositing/repaint/scroll-fixed-squahed-layer.html

Issue 478823002: Don't repaint squashed, fixed position layers during scrolling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/compositing/repaint/scroll-fixed-squahed-layer-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/repaint/scroll-fixed-squahed-layer.html
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-squahed-layer.html b/LayoutTests/compositing/repaint/scroll-fixed-squahed-layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..294a468cedff3b37195d7bbe8648d3a8a070fcca
--- /dev/null
+++ b/LayoutTests/compositing/repaint/scroll-fixed-squahed-layer.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<style>
+.main {
+ position: fixed;
+ top: 100px;
+ left: 100px;
+ width: 200px;
+ height: 200px;
+ background-color: lightblue;
+ will-change: transform;
+}
+
+.squahed {
+ position: fixed;
+ top: 150px;
+ left: 100px;
+ width: 200px;
+ height: 200px;
+ background-color: lightgreen;
+}
+</style>
+<script>
+if (window.internals)
+ internals.settings.setPreferCompositingToLCDTextEnabled(false);
+
+function repaintTest() {
+ window.scrollTo(0, 100);
+}
+</script>
+</head>
+<body style="height:2000px" onload="runRepaintTest()">
+<div class="main"></div>
+<div class="squahed"></div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/compositing/repaint/scroll-fixed-squahed-layer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698