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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html

Issue 2501833002: Fix bug of animated table col/section/row background (Closed)
Patch Set: - Created 4 years, 1 month 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/paint/invalidation/table/animated-row-background-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html b/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html
new file mode 100644
index 0000000000000000000000000000000000000000..ef44a82ba6f6b8d9dd05e6ccddb986488013d2ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+td { width: 100px; height: 100px }
+tr { background-image: url(../../../fast/backgrounds/resources/red-green-animated.gif) }
+</style>
+<table>
+ <tr id="row">
+ <td id="cell1"></td>
+ <td id="cell2"></td>
+ </tr>
+</table>
+<img id="image">
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+window.testIsAsync = true;
+function repaintTest() {
+ if (window.internals)
+ internals.advanceImageAnimation(image);
+ requestAnimationFrame(function() {
+ finishRepaintTest();
+ });
+}
+onload = function() {
+ // The image element ensures that the test runs just after the image
+ // resource is loaded, and will be used in advanceImageAnimation().
+ image.onload = runRepaintTest;
+ image.src="../../../fast/backgrounds/resources/red-green-animated.gif";
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698