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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html

Issue 1491193003: Fix several corner case issues of scrollbar paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 <script src="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 if (window.internals) {
5 internals.settings.setOverlayScrollbarsEnabled(true);
6 internals.settings.setMockScrollbarsEnabled(true);
7 }
4 function repaintTest() { 8 function repaintTest() {
5 document.getElementById('content').style.height = '100px'; 9 document.getElementById('content').style.height = '100px';
6 } 10 }
7 onload = runRepaintTest; 11 onload = runRepaintTest;
8 </script> 12 </script>
9 Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollba r. 13 Tests invalidation when an overlay scrollbar is destroyed. Passes if there is no scrollbar.
10 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px ; overflow: auto"> 14 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px ; overflow: auto">
11 <div id="content" style="width: 100px; height: 400px"></div> 15 <div id="content" style="width: 100px; height: 400px"></div>
12 </div> 16 </div>
13 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698