haikuwebkit/LayoutTests/tiled-drawing/resources/scroll-and-load-page.html

39 lines
1.1 KiB
HTML
Raw Permalink Normal View History

REGRESSION (r158254): Rubber-banding at Bing image search causes the toolbar to move up and away https://bugs.webkit.org/show_bug.cgi?id=128873 Patch by Gurpreet Kaur <k.gurpreet@samsung.com> on 2014-03-06 Reviewed by Antonio Gomes. Source/WebCore: This regression is caused by http://trac.webkit.org/changeset/154614 and http://trac.webkit.org/changeset/156605. So reverting the changes to make it Web compatible as earlier. * dom/Element.cpp: (WebCore::Element::scrollLeft): (WebCore::Element::scrollTop): (WebCore::Element::setScrollLeft): (WebCore::Element::setScrollTop): Reverting changes as it caused regression. LayoutTests: * fast/css/zoom-body-scroll-expected.txt: * fast/css/zoom-body-scroll.html: * fast/dom/Element/documentElement-scrollLeft-expected.txt: * fast/dom/Element/documentElement-scrollLeft.html: * fast/dom/Element/documentElement-scrollTop-expected.txt: * fast/dom/Element/documentElement-scrollTop.html: * fast/dom/Element/scrollLeft-expected.txt: * fast/dom/Element/scrollLeft.html: * fast/dom/Element/scrollTop-expected.txt: * fast/dom/Element/scrollTop.html: * fast/events/mouse-cursor.html: * fast/multicol/scrolling-overflow.html: * http/tests/navigation/anchor-frames-expected.txt: * http/tests/navigation/anchor-frames-gbk-expected.txt: * http/tests/navigation/resources/frame-with-anchor-gbk.html: * http/tests/navigation/resources/frame-with-anchor-same-origin.html: * http/tests/navigation/resources/frame-with-anchor.html: * platform/mac-wk2/tiled-drawing/resources/scroll-and-load-page.html: * platform/mac-wk2/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration.html: Reverting changes as it caused regression. Canonical link: https://commits.webkit.org/147830@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-03-06 13:28:03 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
body
{
width: 5000px;
height: 5000px;
}
</style>
<script>
function pageWasShown(e)
{
if (e.persisted) {
setTimeout(function () {
Use document.scrollingElement to access viewport scroll properties in tests https://bugs.webkit.org/show_bug.cgi?id=182241 Patch by Frederic Wang <fwang@igalia.com> on 2018-01-30 Reviewed by Antonio Gomes. Many tests use document.body in standard mode in order to access scroll properties of the viewport. This is incorrect per the CSSOM View specification but WebKit does not follow the spec at the moment (see bug 5991). This replaces several of these instances with document.scrollingElement, so that tests will still work when WebKit's behavior is changed. LayoutTests/imported/w3c: The change in that web-platform-tests test are imported from https://github.com/w3c/web-platform-tests/commit/fc33ef7641427a3f1388093c54b24f292c21b34d * web-platform-tests/html/browsers/browsing-the-web/scroll-to-fragid/003.html: LayoutTests: * fast/multicol/scrolling-overflow.html: * fast/scrolling/latching/iframe_in_iframe.html: * fast/scrolling/latching/scroll-div-no-latching.html: * fast/scrolling/latching/scroll-latched-nested-div.html: * fast/scrolling/latching/scroll-nested-iframe.html: * http/tests/navigation/anchor-frames-expected.txt: * http/tests/navigation/anchor-frames-gbk-expected.txt: * http/tests/navigation/anchor-frames-same-origin-expected.txt: * http/tests/navigation/resources/frame-with-anchor-gbk.html: * http/tests/navigation/resources/frame-with-anchor-same-origin.html: * http/tests/navigation/resources/frame-with-anchor.html: * tiled-drawing/resources/scroll-and-load-page.html: * tiled-drawing/scrolling/fast-scroll-mainframe-zoom.html: * tiled-drawing/scrolling/frames/resources/autoscrolling-frame-with-fixed.html: * tiled-drawing/scrolling/iframe_in_iframe.html: * tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration-expected.txt: Canonical link: https://commits.webkit.org/198087@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-01-30 13:05:44 +00:00
var log = 'document.scrollingElement.scrollTop = ' + document.scrollingElement.scrollTop + '\n\n';
if (window.internals)
log += internals.layerTreeAsText(window.document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
window.opener.finishedTest(log);
}, 0);
}
}
function scrollAndNavigate()
{
setTimeout(function () {
window.scrollTo(1000, 1000);
setTimeout(function () { location.href = "go-back.html" }, 0);
}, 0);
}
window.addEventListener('load', scrollAndNavigate, false);
window.addEventListener('pageshow', pageWasShown, false);
</script>
</head>
<body>
</body>
</html>