<?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>196824</bug_id>
          
          <creation_ts>2019-04-11 12:15:37 -0700</creation_ts>
          <short_desc>scroll-snap-type is not functioning when child element can be scrolled too</short_desc>
          <delta_ts>2021-01-20 07:28: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 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>https://codepen.io/edwinm/pen/BERXpG</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>218115</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Edwin Martin">edwin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>edwin</cc>
    
    <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>1526426</commentid>
    <comment_count>0</comment_count>
    <who name="Edwin Martin">edwin</who>
    <bug_when>2019-04-11 12:15:37 -0700</bug_when>
    <thetext>Overview:

Codepen to demonstrate this bug:
https://codepen.io/edwinm/pen/BERXpG

1) Horizontal scrolling with scroll-snap-type works fine
2) When child elements itself can scroll vertically, scroll-snap-type in parent element does not work anymore.

In Codepen, toggle scrolling of child elements (line 25 in CSS) to see effect on scroll-snap-type in parent element.

Steps to Reproduce:

- Open Codepen
- Swipe horizontally

Actual Results

- scroll-snap-type does not work, columns with different colors stay visible

Expected Results:

- scroll-snap-type does work, element scrolls to position with only one column of only one color visible.

Build Date &amp; Hardware:

Safari 12.1 on macOS 10.14.4
Safari on iOS 12.2

Additional Builds and Platforms:

-

Additional Information:

Works in macOS Chrome 73.0.3683.103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1526801</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-12 10:28:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/49855348&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720883</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-01-20 07:28:31 -0800</bug_when>
    <thetext>This seems to be working for me, but feel free to reopen this if it&apos;s still an issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>