<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:simon.fraser&#64;apple.com" title="Simon Fraser (smfr) &lt;simon.fraser&#64;apple.com&gt;"> <span class="fn">Simon Fraser (smfr)</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Negative scroll snap repeat values cause web process to hang indefinitely"
   href="https://bugs.webkit.org/show_bug.cgi?id=146953">bug 146953</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #256816 Flags</td>
           <td>review?
           </td>
           <td>review+, commit-queue-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Negative scroll snap repeat values cause web process to hang indefinitely"
   href="https://bugs.webkit.org/show_bug.cgi?id=146953#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Negative scroll snap repeat values cause web process to hang indefinitely"
   href="https://bugs.webkit.org/show_bug.cgi?id=146953">bug 146953</a>
              from <span class="vcard"><a class="email" href="mailto:simon.fraser&#64;apple.com" title="Simon Fraser (smfr) &lt;simon.fraser&#64;apple.com&gt;"> <span class="fn">Simon Fraser (smfr)</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=256816&amp;action=diff" name="attach_256816" title="Patch">attachment 256816</a> <a href="attachment.cgi?id=256816&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=256816&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=256816&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp:90
&gt; +    LayoutUnit repeatOffset = points ? valueForLength(points-&gt;repeatOffset, viewSize) : LayoutUnit(1.0f);</span >

LayoutUnit(1.0f) should be LayoutUnit::fromPixel(1)

<span class="quote">&gt; Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp:92
&gt; +    if (repeatOffset.toFloat() &lt; 1.0f)
&gt; +        repeatOffset = LayoutUnit(1.0f);</span >

repeatOffset = std::min&lt;LayoutUnit&gt;(repeatOffset, 1);

<span class="quote">&gt; LayoutTests/css3/scroll-snap/scroll-snap-negative-repeat.html:39
&gt; +        &lt;style&gt;
&gt; +            #gallery {
&gt; +                height: 400px;
&gt; +                width: 400px;
&gt; +                overflow-x: hidden;
&gt; +                overflow-y: auto;
&gt; +                -webkit-overflow-scrolling: touch;
&gt; +                -webkit-scroll-snap-type: mandatory;
&gt; +                -webkit-scroll-snap-points-y: repeat(-400px);
&gt; +                margin: 0;
&gt; +                padding: 0;
&gt; +            }
&gt; +
&gt; +            .colorBox {
&gt; +                width: 400px;
&gt; +                height: 400px;
&gt; +            }
&gt; +
&gt; +            #item0 { background-color: red; }
&gt; +            #item1 { background-color: green; }
&gt; +            #item2 { background-color: blue; }
&gt; +            #item3 { background-color: aqua; }
&gt; +            #item4 { background-color: yellow; }
&gt; +            #item5 { background-color: fuchsia; }
&gt; +        &lt;/style&gt;
&gt; +        &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
&gt; +    &lt;/head&gt;
&gt; +    &lt;body&gt;
&gt; +        &lt;div id=&quot;gallery&quot;&gt;
&gt; +            &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +            &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +            &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +            &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +            &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +            &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
&gt; +        &lt;/div&gt;</span >

Not sure that any of this is needed. Can't you just have body { -webkit-scroll-snap-type: mandatory; -webkit-scroll-snap-points-y: repeat(-400px); }

<span class="quote">&gt; LayoutTests/css3/scroll-snap/scroll-snap-subpixel-repeat.html:10
&gt; +                -webkit-overflow-scrolling: touch;</span >

Remove this.

<span class="quote">&gt; LayoutTests/css3/scroll-snap/scroll-snap-subpixel-repeat.html:34
&gt; +                testRunner.waitUntilDone();</span >

Not sure why the test needs to be async.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>