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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background-offscreen-firstline.html

Issue 2170073002: Fix check failure when an offscreen element has animated background and first-line style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background-offscreen-firstline-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype HTML>
2 <style>targetImage::first-line { color: yellow; }</style>
3 <div style="height: 2000px; width: 2000px;">
4 <div id="targetImage" style="width: 50px; height: 50px">text text</div>
5 <img id="testTarget" style="visibility: hidden">
6
7 <script src="../../resources/run-after-layout-and-paint.js"></script>
8 <script>
9 // Similar to animated-gif-background-offscreen.html except that the element als o
10 // has first-line style. Passes if no assertion failure.
11
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
15 }
16
17 function targetImageOnload() {
18 window.scrollTo(0, 100);
19 runAfterLayoutAndPaint(function() {
20 setTimeout(function() {
21 if (window.testRunner)
22 testRunner.notifyDone();
23 }, 150);
24 });
25 }
26
27 onload = function() {
28 targetImage.style.background = "url(../../fast/backgrounds/resources/red-gre en-animated.gif)";
29
30 // Use a parallel image element as a hack to detect whether the image has lo aded, and therefore
31 // we'll get a frame.
32 testTarget.onload = targetImageOnload;
33 testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif";
34 }
35 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background-offscreen-firstline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698