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

Unified Diff: LayoutTests/paint/overflow/fixed-children-should-not-scroll.html

Issue 1110653003: [Reland] Correct fixed-position recording for Slimming Paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 8 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: LayoutTests/paint/overflow/fixed-children-should-not-scroll.html
diff --git a/LayoutTests/paint/overflow/fixed-children-should-not-scroll.html b/LayoutTests/paint/overflow/fixed-children-should-not-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..5bb579a865f6364b6040ed7c9dad5e90bd268663
--- /dev/null
+++ b/LayoutTests/paint/overflow/fixed-children-should-not-scroll.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
+<style>
+#bloat {
+ height: 10000px;
+}
+
+#fixed {
+ position: fixed;
+ left: 300px;
+ top: 200px;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+
+#fixed-child {
+ margin-left: 25px;
+ margin-top: 25px;
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+}
+
+::-webkit-scrollbar {
+ width: 0px;
+ height: 0px;
+}
+</style>
+<div id="bloat"></div>
+<div id="fixed">
+ <div id="fixed-child"></div>
+</div>
+<script>
+runAfterDisplay(function() {
+ window.scrollTo(0, 100);
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698