<?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>152667</bug_id>
          
          <creation_ts>2016-01-03 11:38:01 -0800</creation_ts>
          <short_desc>Scroll snapping doesn&apos;t work in RTL scrollable content</short_desc>
          <delta_ts>2021-01-14 03:38:31 -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>Scrolling</component>
          <version>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>218115</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrobinson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1152137</commentid>
    <comment_count>0</comment_count>
      <attachid>268146</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-01-03 11:38:01 -0800</bug_when>
    <thetext>Created attachment 268146
Testcase

Scroll snapping is broken in RTL scrollable content. Test case attached.

We need to figure out of snap points are offsets (0 -&gt; max) or positions (min -&gt; max, possibly negative).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1152138</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-01-03 11:38:18 -0800</bug_when>
    <thetext>appendChildSnapOffsets() filters out negative offsets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699961</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-10-20 15:24:33 -0700</bug_when>
    <thetext>I think I fixed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719567</commentid>
    <comment_count>3</comment_count>
      <attachid>417606</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-01-14 03:38:17 -0800</bug_when>
    <thetext>Created attachment 417606
Updated test case

I&apos;ve updated the test case to follow the modern version of the specification and I can confirm that this is working as expected. I&apos;m going to close this bug for now and then we can open new bugs if we find more specific issues with RTL content.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>268146</attachid>
            <date>2016-01-03 11:38:01 -0800</date>
            <delta_ts>2021-01-14 03:38:17 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>main-frame-elements-snap-rtl.html</filename>
            <type>text/html</type>
            <size>852</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">CjwhRE9DVFlQRSBodG1sPgoKPGh0bWwgZGlyPSJydGwiPgo8aGVhZD4KICAgIDxzdHlsZT4KICAg
ICAgICBib2R5IHsKICAgICAgICAgICAgbWFyZ2luOiAwOwogICAgICAgICAgICAtd2Via2l0LXNj
cm9sbC1zbmFwLXR5cGU6IG1hbmRhdG9yeTsKICAgICAgICAgICAgLXdlYmtpdC1zY3JvbGwtc25h
cC1wb2ludHMteDogZWxlbWVudHM7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIC5jb250YWlu
ZXIgewogICAgICAgICAgICB3aWR0aDogMjQwMHB4OwogICAgICAgIH0KICAgICAgIAogICAgICAg
IC5jb250YWluZXIgPiBkaXYgewogICAgICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgICAgIHBh
ZGRpbmc6IDA7CiAgICAgICAgICAgIHdpZHRoOiA0MDBweDsKICAgICAgICAgICAgaGVpZ2h0OiA0
MDBweDsKICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgICAgICAtd2Vi
a2l0LXNjcm9sbC1zbmFwLWNvb3JkaW5hdGU6IDBweCAwcHg7CiAgICAgICAgfQogICAgPC9zdHls
ZT4KPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImNvbnRhaW5lciI+CiAgICAgICAgPGRp
diBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogcmVkJz48L2Rpdj48ZGl2IHN0eWxlPSdiYWNrZ3Jv
dW5kLWNvbG9yOiBncmVlbic+PC9kaXY+PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogYmx1
ZSc+PC9kaXY+PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogYXF1YSc+PC9kaXY+PGRpdiBz
dHlsZT0nYmFja2dyb3VuZC1jb2xvcjogeWVsbG93Jz48L2Rpdj48ZGl2IHN0eWxlPSdiYWNrZ3Jv
dW5kLWNvbG9yOiBmdWNoc2lhJz48L2Rpdj4KICAgIDwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>417606</attachid>
            <date>2021-01-14 03:38:17 -0800</date>
            <delta_ts>2021-01-14 03:38:17 -0800</delta_ts>
            <desc>Updated test case</desc>
            <filename>attachment.htm</filename>
            <type>text/html</type>
            <size>804</size>
            <attacher name="Martin Robinson">mrobinson</attacher>
            
              <data encoding="base64">CjwhRE9DVFlQRSBodG1sPgoKPGh0bWwgZGlyPSJydGwiPgo8aGVhZD4KICAgIDxzdHlsZT4KICAg
ICAgICBodG1sIHsKICAgICAgICAgICAgc2Nyb2xsLXNuYXAtdHlwZTogeCBtYW5kYXRvcnk7CiAg
ICAgICAgfQogICAgICAgIGJvZHkgewogICAgICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgfQog
ICAgICAgIAogICAgICAgIC5jb250YWluZXIgewogICAgICAgICAgICB3aWR0aDogMjQwMHB4Owog
ICAgICAgIH0KICAgICAgIAogICAgICAgIC5jb250YWluZXIgPiBkaXYgewogICAgICAgICAgICBt
YXJnaW46IDA7CiAgICAgICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgICAgIHdpZHRoOiA0MDBw
eDsKICAgICAgICAgICAgaGVpZ2h0OiA0MDBweDsKICAgICAgICAgICAgZGlzcGxheTogaW5saW5l
LWJsb2NrOwogICAgICAgICAgICBzY3JvbGwtc25hcC1hbGlnbjogc3RhcnQ7CiAgICAgICAgfQog
ICAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImNvbnRhaW5lciI+CiAg
ICAgICAgPGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogcmVkJz48L2Rpdj48ZGl2IHN0eWxl
PSdiYWNrZ3JvdW5kLWNvbG9yOiBncmVlbic+PC9kaXY+PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1j
b2xvcjogYmx1ZSc+PC9kaXY+PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogYXF1YSc+PC9k
aXY+PGRpdiBzdHlsZT0nYmFja2dyb3VuZC1jb2xvcjogeWVsbG93Jz48L2Rpdj48ZGl2IHN0eWxl
PSdiYWNrZ3JvdW5kLWNvbG9yOiBmdWNoc2lhJz48L2Rpdj4KICAgIDwvZGl2Pgo8L2JvZHk+Cjwv
aHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>