<?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>207826</bug_id>
          
          <creation_ts>2020-02-15 21:03:42 -0800</creation_ts>
          <short_desc>An RTL document with scroll snap scrolls to the wrong place on load</short_desc>
          <delta_ts>2021-07-07 13:28:44 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193671</see_also>
          <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>
          <dependson>214788</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>mrobinson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1619478</commentid>
    <comment_count>0</comment_count>
      <attachid>390884</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-02-15 21:03:42 -0800</bug_when>
    <thetext>Created attachment 390884
Testcase

Loading at the testcase on iOS causes the page to scroll all the way to the left, but it should remain scrolled to the right.

There are some ordering issues where we fail to compute the non-zero initial snap index in RTL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619480</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-02-15 21:04:42 -0800</bug_when>
    <thetext>The problem is that we push data into the scrolling tree via RenderLayerCompositor::updateScrollingNodeForScrollingRole(), but this runs before updateScrollSnapState() which runs as a post-layout task.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691165</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-23 10:20:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/69443111&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775287</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-07-07 09:13:27 -0700</bug_when>
    <thetext>I think this is working now? Perhaps this was improved by recent fixes around treating points as scroll offsets versus scroll positions in ScrollableArea?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775420</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-07 13:28:44 -0700</bug_when>
    <thetext>I still see issues when first loading the test case on iPhone, with iOS 15.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>390884</attachid>
            <date>2020-02-15 21:03:42 -0800</date>
            <delta_ts>2020-02-15 21:03:42 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>main-frame-snap-rtl.html</filename>
            <type>text/html</type>
            <size>1268</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">CjwhRE9DVFlQRSBodG1sPgoKPGh0bWwgZGlyPSJydGwiPgo8aGVhZD4KICAgIDxzdHlsZT4KICAg
ICAgICBib2R5IHsKICAgICAgICAgICAgbWFyZ2luOiAwOwogICAgICAgICAgICBzY3JvbGwtc25h
cC10eXBlOiBpbmxpbmU7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIC5jb250YWluZXIgewog
ICAgICAgICAgICB3aWR0aDogMjQwMHB4OwogICAgICAgIH0KICAgICAgICAKICAgICAgICAuemVy
byB7CiAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICAgICAgdG9wOiAwOwog
ICAgICAgICAgICBsZWZ0OiAwOwogICAgICAgICAgICB3aWR0aDogMTBweDsKICAgICAgICAgICAg
aGVpZ2h0OiAxMHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBvcmFuZ2U7CiAgICAg
ICAgfQogICAgICAgIAogICAgICAgCiAgICAgICAgLmNvbnRhaW5lciA+IGRpdiB7CiAgICAgICAg
ICAgIG1hcmdpbjogMDsKICAgICAgICAgICAgcGFkZGluZzogMDsKICAgICAgICAgICAgd2lkdGg6
IDQwMHB4OwogICAgICAgICAgICBoZWlnaHQ6IDQwMHB4OwogICAgICAgICAgICBkaXNwbGF5OiBp
bmxpbmUtYmxvY2s7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMjRwdDsKICAgICAgICAgICAgY29s
b3I6IHdoaXRlOwogICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICAgIHBh
ZGRpbmc6IDIwcHg7CiAgICAgICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAg
ICAgIHNjcm9sbC1zbmFwLWFsaWduOiBzdGFydDsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAg
Lm5hcnJvdyB7CiAgICAgICAgICAgIHdpZHRoOiAyMjVweCAhaW1wb3J0YW50OwogICAgICAgIH0K
ICAgICAgICAKICAgIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgICA8ZGl2IGNsYXNzPSJjb250
YWluZXIiPgogICAgICAgIDxkaXYgc3R5bGU9J2JhY2tncm91bmQtY29sb3I6IHJlZCc+MTwvZGl2
PjxkaXYgc3R5bGU9J2JhY2tncm91bmQtY29sb3I6IGdyZWVuJz4yPC9kaXY+PGRpdiBzdHlsZT0n
YmFja2dyb3VuZC1jb2xvcjogYmx1ZSc+MzwvZGl2PjxkaXYgY2xhc3M9Im5hcnJvdyIgc3R5bGU9
J2JhY2tncm91bmQtY29sb3I6IGFxdWEnPjQ8L2Rpdj48ZGl2IHN0eWxlPSdiYWNrZ3JvdW5kLWNv
bG9yOiB5ZWxsb3cnPjU8L2Rpdj48ZGl2IHN0eWxlPSdiYWNrZ3JvdW5kLWNvbG9yOiBmdWNoc2lh
Jz42PC9kaXY+CiAgICA8L2Rpdj4KICAgIDxkaXYgY2xhc3M9Inplcm8iPgogICAgPC9kaXY+Cjwv
Ym9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>