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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/containment/contain-paint-composited-scroll.html

Issue 1985933002: Don't clip composited scrolling contain:paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/contain-paint-composited-scroll-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/contain-paint-composited-scroll.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/containment/contain-paint-composited-scroll.html b/third_party/WebKit/LayoutTests/fast/css/containment/contain-paint-composited-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..431becca324920ca6e36f0cceea1fdd29a59a187
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/containment/contain-paint-composited-scroll.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+Tests composited scrolling of contain:paint. Passes if contents are completely painted when scrolled.
+<style>
+::-webkit-scrollbar { width: 0 }
+</style>
+<div id="target" style="overflow-y: auto; width: 150px; height: 150px; contain: paint; will-change: transform">
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+</div>
+<script src="../../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ target.scrollTop = 100;
+}, true);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/containment/contain-paint-composited-scroll-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698