<?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>197189</bug_id>
          
          <creation_ts>2019-04-23 01:27:02 -0700</creation_ts>
          <short_desc>Scroll position resets when hovering over clickable link when body height is set to 100vh</short_desc>
          <delta_ts>2019-10-22 09:31:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Scrolling</component>
          <version>Safari 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Eckert">sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fil.cabbage.ip</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1529537</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Eckert">sam</who>
    <bug_when>2019-04-23 01:27:02 -0700</bug_when>
    <thetext>We&apos;re experiencing an issue where, when we scroll on our site, the scroll position is reset every time a user clicks or hovers over a clickable link. We were able to track down the source of the issue and it seems that setting the body height of a page to 100vh causes this issue. The issue is exclusive to Safari and WebKit and does not occur in other browsers.

A demo of this behaviour is available on https://openmoji.org/about.html

A further discussion on this issue is available here:
https://github.com/hfg-gmuend/openmoji-website/issues/15
https://github.com/hfg-gmuend/openmoji-website/pull/18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529595</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-23 08:32:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/50130566&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529678</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-23 12:00:04 -0700</bug_when>
    <thetext>Steps:
1. Open http://openmoji.org/about.html
2. Scroll down
3. Hover over a link (like Twitter Icon below a profile)
The site scrolls back to the top


However, I can&apos;t reproduce; maybe the site was fixed? Can we get a version of the site that shows has the bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529684</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Eckert">sam</who>
    <bug_when>2019-04-23 12:23:06 -0700</bug_when>
    <thetext>The site linked is the one causing issues, it hasn&apos;t been updated. I&apos;m able to reproduce this issue on multiple machines, I just checked.

Here&apos;s another URL you could try:
https://hfg-gmuend.github.io/openmoji-website/about.html

If unavailable, this URL might work:
https://hfg-gmuend.github.io/openmoji-website/about

Demo Video of the issue:
https://youtu.be/noNbdwfXuIQ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529691</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-23 12:41:24 -0700</bug_when>
    <thetext>This might have been fixed. Could you try Safari Tech Preview (https://developer.apple.com/safari/download/)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529735</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Eckert">sam</who>
    <bug_when>2019-04-23 13:44:36 -0700</bug_when>
    <thetext>This issue seems fixed in the latest STP. When is a public update for Safari with a release of this bugfix expected? Any ideas for a temporary workaround until that bugfix is published or what might cause this issue? Thx for your help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1559093</commentid>
    <comment_count>6</comment_count>
    <who name="Filip">fil.cabbage.ip</who>
    <bug_when>2019-08-07 04:34:09 -0700</bug_when>
    <thetext>This bug persists, I&apos;ve tested it on multiple Apple devices running safari, as well as the Epiphany browser (which also uses Webkit).
I have made a demo here: http://jsfiddle.net/rnzt02cL/embedded/html,css,result
and highlighted the lines which contribute to the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1559095</commentid>
    <comment_count>7</comment_count>
    <who name="Filip">fil.cabbage.ip</who>
    <bug_when>2019-08-07 05:19:11 -0700</bug_when>
    <thetext>I&apos;ve found more properties that cause the bug and added the to the fiddle: http://jsfiddle.net/totalolage/rnzt02cL/11/embedded/html,css,result</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581211</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-10-17 16:13:51 -0700</bug_when>
    <thetext>Possibly related to bug 201528.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582076</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-10-21 15:12:53 -0700</bug_when>
    <thetext>Filip, what browser/OS are you testing on? The test uses hover, so I assume this is not iOS?

I can&apos;t reproduce. Pretty sure this is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582399</commentid>
    <comment_count>10</comment_count>
    <who name="Filip">fil.cabbage.ip</who>
    <bug_when>2019-10-22 09:31:32 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #9)
&gt; Filip, what browser/OS are you testing on? The test uses hover, so I assume
&gt; this is not iOS?
&gt; 
&gt; I can&apos;t reproduce. Pretty sure this is fixed.

I can&apos;t reproduce either anymore. I assume it&apos;s been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>