<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>140018</bug_id>
          
          <creation_ts>2014-12-31 11:18:09 -0800</creation_ts>
          <short_desc>Content of iframe inside absolutely positioned div scrolls to top on reflow, and iframe height shrinks</short_desc>
          <delta_ts>2014-12-31 15:28:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 8.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=139694</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>malsup</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>enrica</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1058270</commentid>
    <comment_count>0</comment_count>
      <attachid>243851</attachid>
    <who name="">malsup</who>
    <bug_when>2014-12-31 11:18:09 -0800</bug_when>
    <thetext>Created attachment 243851
Contains two files: 
  ios-test.html
  ios-test2.html

ios-test.html is the main file to load in the browser.

ios-test2.html is the iframe content source file.

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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058286</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-12-31 15:28:29 -0800</bug_when>
    <thetext>Possibly a duplicate of bug 139694.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>243851</attachid>
            <date>2014-12-31 11:18:09 -0800</date>
            <delta_ts>2014-12-31 11:20:07 -0800</delta_ts>
            <desc>Contains two files: 
  ios-test.html
  ios-test2.html

ios-test.html is the main file to load in the browser.

ios-test2.html is the iframe content source file.</desc>
            <filename>ios-iframe-scroll.zip</filename>
            <type>application/zip</type>
            <size>758</size>
            <attacher>malsup</attacher>
            
              <data encoding="base64">UEsDBBQACAAIANZrn0UAAAAAAAAAAAAAAAANABAAaW9zLXRlc3QuaHRtbFVYDAAwRKRU1ECkVJ2K
KzI1kE2OgzAMhdfkFBmkWVLoLCFwl5AYiBowSgwIVb37mJ+u3pOTZ3+2+rFoaJ9BDjT6RqivgLYs
I5CWkx6hXh1sMwaSBieCierUTY6c9lk02kP9fBQpByLtHhrRot3lW4469G4qZSE/wrpVvkUyY+QY
clG3Ef1CUImEcOZPlfTQ0WmC64fLtUiE42FFgiuEzuPG2YWQC9kG7ctR9n1gloDeu6kvJeFihkp8
hOsCL8A01sXZ672UrUfzYiSV37gqv/c9uBshFMM2IlF3dIADp34Wxa/cnKXhsjEYvgLGjCDS3+O4
XNqo/AodTc8urFdXHnLe9h9QSwcIzZEpfPMAAABzAQAAUEsDBBQACAAIAAhsn0UAAAAAAAAAAAAA
AAAOABAAaW9zLXRlc3QyLmh0bWxVWAwAMESkVC9BpFSdiisy7da9CsIwFIbh2V7FsatIBsGhHAMW
RAWxgzqJQ9scbTBtSht/qnjv9kcXJy8g05flfdYT7AsdmyonSEyquIPfoVDUU5pKEXciLSp4wlFn
ZljKB3kwGud3eDkyyy9m3/QTtwiF1O7BixOKzyRgACqMSH27G8lTYjyItBJ1iexjY4PXc9RFyp0e
Cnnl2LrQui0LWZjSJOPYkjxYz5B1T2RN8Ge3DDbg7+awnW22FrCABSxgAQtYQHF/NV38hMi6o4zs
c6NZ9zt4A1BLBwgoB2uDxwAAADUIAABQSwECFQMUAAgACADWa59FzZEpfPMAAABzAQAADQAMAAAA
AAAAAABAtIEAAAAAaW9zLXRlc3QuaHRtbFVYCAAwRKRU1ECkVFBLAQIVAxQACAAIAAhsn0UoB2uD
xwAAADUIAAAOAAwAAAAAAAAAAEC0gT4BAABpb3MtdGVzdDIuaHRtbFVYCAAwRKRUL0GkVFBLBQYA
AAAAAgACAI8AAABRAgAAAAA=
</data>

          </attachment>
      

    </bug>

</bugzilla>