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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-descendant-of-transformed-scrolled.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 document.getElementById('fixed').style.backgroundColor = 'green';
6 }
7 onload = function() {
8 document.getElementById('transformed').scrollTop = 50;
9 runRepaintAndPixelTest();
10 }
11 </script>
12 <style>
13 #transformed {
14 position: absolute;
15 top: 50px;
16 left: 100px;
17 transform: translateX(0);
18 overflow: scroll;
19 width: 300px;
20 height: 300px;
21 }
22 #fixed {
23 position: fixed;
24 top: 150px;
25 left: 100px;
26 width: 100px;
27 height: 100px;
28 background-color: red;
29 }
30 #relative {
31 position: relative;
32 top: 50px;
33 left: 50px;
34 }
35 /* to make the transformed container scrollable */
36 #content {
37 width: 1000px;
38 height: 1000px;
39 }
40 </style>
41 Tests invalidation of a fixed-position descendant of a transformed scrolled elem ent.
42 Passes if there is a green box at the center of the scrollable area.
43 <div id="transformed">
44 <div id="relative">
45 <div id="fixed"></div>
46 <div id="content"></div>
47 </div>
48 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698