Commit 10a331a3 authored by rniwa@webkit.org's avatar rniwa@webkit.org

Prevent overflow of width/height of layout overflow rectangle which can cause...

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.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 420de044
2013-09-09 Ryosuke Niwa <rniwa@webkit.org>
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 <mark.lam@apple.com>
Remove old fast/js/resources pre and post test files.
<!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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment