Title: [155394] trunk/LayoutTests
Revision
155394
Author
[email protected]
Date
2013-09-09 15:36:50 -0700 (Mon, 09 Sep 2013)

Log Message

Prevent overflow of width/height of layout overflow rectangle which can cause scroll bar to misfunction
https://bugs.webkit.org/show_bug.cgi?id=121041

Reviewed by Darin Adler.

Merge the test from https://chromium.googlesource.com/chromium/blink/+/d050f9be579d02e40c8924b4153376bc32ffba1a

* scrollbars/scrollbar-large-overflow-rectangle-expected.txt: Added.
* scrollbars/scrollbar-large-overflow-rectangle.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (155393 => 155394)


--- trunk/LayoutTests/ChangeLog	2013-09-09 22:27:58 UTC (rev 155393)
+++ trunk/LayoutTests/ChangeLog	2013-09-09 22:36:50 UTC (rev 155394)
@@ -1,3 +1,15 @@
+2013-09-09  Ryosuke Niwa  <[email protected]>
+
+        Prevent overflow of width/height of layout overflow rectangle which can cause scroll bar to misfunction
+        https://bugs.webkit.org/show_bug.cgi?id=121041
+
+        Reviewed by Darin Adler.
+
+        Merge the test from https://chromium.googlesource.com/chromium/blink/+/d050f9be579d02e40c8924b4153376bc32ffba1a
+
+        * scrollbars/scrollbar-large-overflow-rectangle-expected.txt: Added.
+        * scrollbars/scrollbar-large-overflow-rectangle.html: Added.
+
 2013-09-09  Mark Lam  <[email protected]>
 
         Remove old fast/js/resources pre and post test files.

Added: trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle-expected.txt (0 => 155394)


--- trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle-expected.txt	2013-09-09 22:36:50 UTC (rev 155394)
@@ -0,0 +1,3 @@
+This page should be scrollable
+PASS
+

Added: trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html (0 => 155394)


--- trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html	                        (rev 0)
+++ trunk/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html	2013-09-09 22:36:50 UTC (rev 155394)
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+    <head>
+    <title>absolute positioned element with large negative top value inside tall relative positioned box does not render scrollbars</title>
+        <style>
+            body, p{
+              margin:0;
+            }
+            div{
+                position: relative;
+                height:3000px;
+            }
+            span{
+                position: absolute;
+                top:-3355400000px;
+            }
+        </style>
+        <script>
+            if (window.testRunner) {
+                testRunner.dumpAsText();
+            }
+            
+            function test() {
+              var height = document.body.scrollHeight;
+              if (height == 3000)
+                document.getElementById("result").innerHTML = "PASS";
+              else
+                document.getElementById("result").innerHTML = "<p style='color:red'>FAIL document.body.scrollHeight = " + height +"</p>";
+              }
+        </script> 
+    </head>
+    
+    <body _onload_="test()">
+    <div>
+      <p> This page should be scrollable </p>
+      <p id="result"> </p>
+      <span style="visibility:hidden">filler <!--abs pos with very large negative top value--></span>
+    </div>
+   
+    </body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to