<?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>142972</bug_id>
          
          <creation_ts>2015-03-23 11:48:20 -0700</creation_ts>
          <short_desc>CSSParser is encountering seemingly malformed scroll-snap-destination input</short_desc>
          <delta_ts>2015-03-23 17:16:18 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1079325</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-23 11:48:20 -0700</bug_when>
    <thetext>I placed the following assertion in CSSParser to catch instances where the scroll-snap-destination input processed by the CSSParser did not match expectations.

--- a/trunk/Source/WebCore/css/CSSParser.cpp
+++ b/trunk/Source/WebCore/css/CSSParser.cpp
@@ -3354,5 +3354,4 @@
 {
     RefPtr&lt;CSSValueList&gt; position = CSSValueList::createSpaceSeparated();
+    ASSERT(m_valueList-&gt;size() == 2);
     if (m_valueList-&gt;size() != 2)
         return false;

This is firing for the following test cases:

css3/scroll-snap/scroll-snap-position-values.html
css3/scroll-snap/scroll-snap-property-computed-style.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079326</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-03-23 11:49:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/20261950&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079481</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-23 15:43:49 -0700</bug_when>
    <thetext>It looks like we&apos;re hitting this for the invalid case &apos;none&apos;:

  -webkit-scroll-snap-destination: none;

The specification does not support &apos;none&apos; as a valid input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079487</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-23 15:50:49 -0700</bug_when>
    <thetext>The other case was expected bad input from &apos;scroll-snap-property-computed-style.js&apos;, which was passing three arguments to confirm we would reject it.

The assertion should not be used because of these known tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079514</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-23 17:16:18 -0700</bug_when>
    <thetext>These cases all work properly. The assertion I added was invalid. Closing as invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>