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

Unified Diff: third_party/WebKit/LayoutTests/css3/filters/filter-repaint-turbulence.html

Issue 2294633002: Add new filter repaint test for turbulence, rebaseline existing test (Closed)
Patch Set: Move new test, align more with css3/filters style Created 4 years, 4 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/css3/filters/filter-repaint-turbulence.html
diff --git a/third_party/WebKit/LayoutTests/css3/filters/filter-repaint-turbulence.html b/third_party/WebKit/LayoutTests/css3/filters/filter-repaint-turbulence.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca364450f134153fe12278003d33c58f8db47f32
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/filters/filter-repaint-turbulence.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+ This test verifies that turbulence is repainted covering the entire filter
+ region, including margin.
+-->
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+ }
+
+ function repaintTest()
+ {
+ runAfterLayoutAndPaint(function() {
+ document.getElementById('div').classList.add('filtered');
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ }
+</script>
+<style>
+ div {
+ margin: 50px;
+ height: 100px;
+ width: 100px;
+ background-color: green;
+ }
+
+ .filtered {
+ filter: url(#turbulence);
+ }
+</style>
+<body onload="repaintTest()">
+ <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
+ <defs>
+ <filter id="turbulence">
+ <feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/>
+ </filter>
+ </defs>
+ </svg>
+ <div id="div"></div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698