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

Side by Side Diff: LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/platform/win/fast/events/platform-wheelevent-paging-y-in-scrolling-page-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>absolute positioned element with large negative top value inside tall relative positioned box does not render scrollbars</title> 4 <title>absolute positioned element with large negative top value inside tall relative positioned box does not render scrollbars</title>
5 <style> 5 <style>
6 body, p{ 6 body, p{
7 margin:0; 7 margin:0;
8 } 8 }
9 div{ 9 div{
10 position: relative; 10 position: relative;
11 height:3000px; 11 height:3000px;
12 } 12 }
13 span{ 13 span{
14 position: absolute; 14 position: absolute;
15 top:-3355400000px; 15 top:-3355400000px;
16 } 16 }
17 </style> 17 </style>
18 <script> 18 <script>
19 if (window.testRunner) { 19 if (window.testRunner) {
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 } 21 }
22 22
23 function test() { 23 function test() {
24 var height = document.body.scrollHeight; 24 var height = document.scrollingElement.scrollHeight;
25 if (height == 3000) 25 if (height == 3000)
26 document.getElementById("result").innerHTML = "PASS"; 26 document.getElementById("result").innerHTML = "PASS";
27 else 27 else
28 document.getElementById("result").innerHTML = "<p style='color:r ed'>FAIL document.body.scrollHeight = " + height +"</p>"; 28 document.getElementById("result").innerHTML = "<p style='color:r ed'>FAIL document.scrollingElement.scrollHeight = " + height +"</p>";
29 } 29 }
30 </script> 30 </script>
31 </head> 31 </head>
32 32
33 <body onload="test()"> 33 <body onload="test()">
34 <div> 34 <div>
35 <p> This page should be scrollable </p> 35 <p> This page should be scrollable </p>
36 <p id="result"> </p> 36 <p id="result"> </p>
37 <span style="visibility:hidden">filler <!--abs pos with very large negativ e top value--></span> 37 <span style="visibility:hidden">filler <!--abs pos with very large negativ e top value--></span>
38 </div> 38 </div>
39 39
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/fast/events/platform-wheelevent-paging-y-in-scrolling-page-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698