[Webkit-unassigned] [Bug 140018] New: Content of iframe inside absolutely positioned div scrolls to top on reflow, and iframe height shrinks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 31 11:18:09 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=140018

            Bug ID: 140018
           Summary: Content of iframe inside absolutely positioned div
                    scrolls to top on reflow, and iframe height shrinks
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: iOS
                OS: iOS 8.1
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: malsup at salesforce.com

Created attachment 243851
  --> https://bugs.webkit.org/attachment.cgi?id=243851&action=review
main file to load in browser

Scenario:
    When an iframe with sufficiently long content resides w/in an absolutely positioned div strange behavior occurs when a reflow is triggered near the bottom of the content.  The scroll position of the iframe content gets reset to zero and the height of the iframe itself changes to match its parent.

Attached file: ios-iframe-scroll.zip
    which contains two html files:
       ios-test.html
       ios-test2.html

Steps to repro:
   Load ios-test.html in mobile Safari on iPhone or iPhone simulator.
   Scroll to the bottom of the page and select the last radio button.

Observed behavior:
    You will see that the contents of the iframe automatically scroll to the top and the iframe height changes to no longer account for it's full content.

Expected behavior:
    There should be no change in the scroll position or size of the iframe.

Additional information:
    If you remove the position:absolute style rule on the div the behavior is correct.

Webkit Version: 600.1.4
Browser name: iPhone 12B411 600.1.4

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141231/4f224450/attachment-0002.html>


More information about the webkit-unassigned mailing list