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

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

Issue 22799017: Prevent overflow of width/height of layout overflow rectangle which can cause scroll bar to misfunc… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix expected txt Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/scrollbars/scrollbar-large-overflow-rectangle-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html
diff --git a/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html b/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html
new file mode 100644
index 0000000000000000000000000000000000000000..94273b34535d1c39cf8081c74d1c6edc59812e91
--- /dev/null
+++ b/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html
@@ -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>
« no previous file with comments | « no previous file | LayoutTests/scrollbars/scrollbar-large-overflow-rectangle-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698