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

Unified Diff: LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll.html

Issue 222473004: Fix scrolling fixed objs containing abs pos obj (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/fixed-pos-with-abs-pos-child-scroll-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll.html
diff --git a/LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll.html b/LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..c49a57a74016e38b9adba97e9873eff45b4435b6
--- /dev/null
+++ b/LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll.html
@@ -0,0 +1,65 @@
+<!doctype html>
+<html>
+
+<head>
+<script src="../../resources/run-after-display.js"></script>
+
+<style>
+ #fixed {
+ position: fixed;
+ bottom: 30px;
+ right: 0px;
+ }
+ #abs {
+ position: absolute;
+ bottom: 0px;
+ right: 0px;
+ height: 90px;
+ width: 360px;
+ background: yellow;
+ }
+</style>
+
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(false);
+ window.internals.settings.setForceCompositingMode(true);
+ }
+
+ window.onload = function() {
+ if (window.internals)
+ window.internals.startTrackingRepaints(document);
+
+ window.scrollTo(0, 500);
+
+ runAfterDisplay(function() {
+ window.scrollTo(0, 0);
+
+ runAfterDisplay(function() {
+ if (window.internals)
+ document.getElementById('layers').textContent =
+ window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ });
+ }
+</script>
+</head>
+
+<body style="height: 4000px;">
+ <div id="fixed">
+ <div id="abs">
+ Hi!
+ </div>
+ </div>
+ <pre id="layers"></pre>
+</body>
+
+</html>
« no previous file with comments | « no previous file | LayoutTests/compositing/repaint/fixed-pos-with-abs-pos-child-scroll-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698