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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/position-change-keeping-geometry-expected.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 body { 3 body {
4 margin: 0; 4 margin: 0;
5 } 5 }
6 div { 6 div {
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 top: 20px; 9 top: 20px;
10 background-color: blue; 10 background-color: blue;
11 } 11 }
12 #target0 { 12 #target0 {
13 left: 20px; 13 left: 20px;
14 position: relative; 14 position: relative;
15 } 15 }
16 #target1 { 16 #target1 {
17 left: 20px; 17 left: 20px;
18 position: absolute; 18 position: relative;
19 } 19 }
20 #target2 { 20 #target2 {
21 left: 220px; 21 left: 220px;
22 position: absolute; 22 position: fixed;
23 z-index: 0; 23 z-index: 0;
24 } 24 }
25 #target3 { 25 #target3 {
26 left: 420px; 26 left: 420px;
27 position: fixed; 27 position: absolute;
28 z-index: 0; 28 z-index: 0;
29 } 29 }
30 </style> 30 </style>
31 There should be no invalildations on change of position without actual change of position and size. 31 There should be no invalildations on change of position without actual change of position and size.
32 <!-- target0 ensures we don't strip anonymous wrappers (and trigger a layout) wh en the other elements change position. --> 32 <!-- target0 ensures we don't strip anonymous wrappers (and trigger a layout) wh en the other elements change position. -->
33 <div id="target0"></div> 33 <div id="target0"></div>
34 <div id="target1"></div> 34 <div id="target1"></div>
35 <div id="target2"></div> 35 <div id="target2"></div>
36 <div id="target3"></div> 36 <div id="target3"></div>
37 <script>
38 target1.style.top = target0.offsetTop + target0.offsetHeight + 'px';
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698