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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html

Issue 2705453002: Force compositing/overflow/composited-sticky-element to be composited (Closed)
Patch Set: Actually composite... Created 3 years, 10 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/compositing/overflow/composited-sticky-element-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html
index f52efcd0b4bbedd699a31199df506fc2939a816a..713dea37bb1c1d56d7984ce04f06a161775a45bf 100644
--- a/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html
@@ -4,25 +4,27 @@ onload = function() {
}
</script>
<style>
+.composited {
+ will-change: transform;
+}
+
#scroller {
- /* Opaque background means scroller is composited. */
- background: white;
height: 200px;
overflow: auto;
width: 200px;
}
+
.sticky {
position: sticky;
top: 0;
height: 50px;
- /* Opaque background means sticky element is composited. */
background: green;
}
.spacer {
height: 2000px;
}
</style>
-<div id="scroller">
- <div class="sticky"></div>
+<div id="scroller" class="composited">
+ <div class="composited sticky"></div>
<div class="spacer"></div>
</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698