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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html

Issue 2194913002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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 | third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position.html b/third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html
similarity index 57%
copy from third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position.html
copy to third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html
index f028d8c3bf68211bd1dbe4616256a3680c9aca3d..d4fd8d6eec697c87111e6c3a09b2517348b9af41 100644
--- a/third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position.html
+++ b/third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html
@@ -6,18 +6,28 @@ div {
}
.container {
contain: paint;
- background-color: green;
+ background-color: red;
}
.fixed {
position: fixed;
top: 0px;
- left: 100px;
- background-color: red;
+ left: 0px;
+ background-color: green;
}
.inline {
display: inline-block;
}
+.spacer {
+ position:absolute;
+ height: 2000px;
+}
</style>
+<script>
+onload = function() {
+ window.scrollTo(0, 25);
+};
+</script>
<body>
+<div class="spacer"></div>
<div class="container"><div class="fixed"></div></div>
-<div class="container inline"><div class="fixed"></div></div>
+<div class="container inline"><div class="fixed"></div></div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698