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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/filter-on-html-element-with-fixed-position-child.html

Issue 2091603002: Invalidate fixed-pos elements & descendants on scroll w/filters that change pixels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 6 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: third_party/WebKit/LayoutTests/paint/invalidation/filter-on-html-element-with-fixed-position-child.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/filter-on-html-element-with-fixed-position-child.html b/third_party/WebKit/LayoutTests/paint/invalidation/filter-on-html-element-with-fixed-position-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..4241f9baff02af7595093ab2ec205e3982c54831
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/filter-on-html-element-with-fixed-position-child.html
@@ -0,0 +1,26 @@
+<!doctype HTML>
+<style>
+ html {
+ filter: url('#filter1');
+ }
+</style>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<html>
+<div style="position: fixed; width: 100px; height: 100px; background: lightgray"></div>
+<div style="width: 200px; height: 10000px; background: lightblue"></div>
+<span id="cvd_extension_svg_filter" hidden="">
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
+ <defs>
+ <filter id="filter1">
+ <feColorMatrix id="cvd_matrix_1" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix>
+ </filter>
+ </defs>
+ </svg>
+</span>
+</html>
+<script>
+onload = runRepaintAndPixelTest;
+function repaintTest() {
+ document.scrollingElement.scrollTop = '10';
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698