Commit ce940f7f authored by bokan@chromium.org's avatar bokan@chromium.org

Fix relayout-fixed-position-after-scale.html to work with virtual-viewport.

This test was using removed internal methods and didn't set a minimum page
scale which is now needed for position-fixed elements to correctly get their
percentage based size.

BUG=225184

Review URL: https://codereview.chromium.org/1318543005

git-svn-id: svn://svn.chromium.org/blink/trunk@201149 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 0a124990
......@@ -301,9 +301,6 @@ crbug.com/411164 [ Win ] http/tests/security/powerfulFeatureRestrictions/service
crbug.com/310679 [ Mac ] virtual/pointerevent/fast/events/scale-and-scroll-iframe-body.html [ ImageOnlyFailure ]
crbug.com/310679 [ Mac ] virtual/pointerevent/fast/events/scale-and-scroll-iframe-window.html [ ImageOnlyFailure ]
# Tests failing since applyPageScaleFactorInCompositor enabled
crbug.com/225184 fast/repaint/relayout-fixed-position-after-scale.html [ ImageOnlyFailure ]
crbug.com/475984 [ Mac Debug ] css2.1/t100801-c544-valgn-03-d-agi.html [ Failure ]
# Rebaseline didn't fix this. It's flaking between two different failures due to rounding error.
......
......@@ -26,16 +26,17 @@
<div class="percentage_size" style="right:30%;top:25%"></div>
<div class="percentage_size" style="left:20%;bottom:15%"></div>
<div class="percentage_size" style="right:10%;bottom:5%"></div>
<div id="spacer" style="width: 1700px; height: 1300px"></div>
<script>
function runTest() {
if (window.internals && window.eventSender) {
window.internals.settings.setFixedElementsLayoutRelativeToFrame(true);
window.internals.setPageScaleFactorLimits(0.5, 4);
window.internals.setPageScaleFactor(0.5);
// Force scrollbar to hide and re-layout immediately.
window.internals.setPageScaleFactor(0.1);
var spacer = document.getElementById('spacer');
spacer.style.display = "none";
document.body.offsetTop;
window.internals.setPageScaleFactor(0.5);
}
}
</script>
......
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