<?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>24703</bug_id>
          
          <creation_ts>2009-03-19 14:27:21 -0700</creation_ts>
          <short_desc>Support snapping, ticks for &lt;input type=&quot;range&quot;&gt;</short_desc>
          <delta_ts>2013-03-28 01:36:55 -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>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>27450</dependson>
    
    <dependson>27451</dependson>
          <blocked>19264</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cmarcelo</cc>
    
    <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>jonlee</cc>
    
    <cc>michelangelo</cc>
    
    <cc>mike</cc>
    
    <cc>ravi.kasibhatla</cc>
    
    <cc>tkent</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webmaster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114373</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-03-19 14:27:21 -0700</bug_when>
    <thetext>&lt;input type=&quot;range&quot; min=&quot;1&quot; max=&quot;3&quot; step=&quot;1&quot;&gt; draws as an unmarked slider that slides smoothly from one end to the other.  It would be nicer to have tickmarks and to snap to them.  Try using Opera for a sample experience.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114374</commentid>
    <comment_count>1</comment_count>
      <attachid>28763</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-03-19 14:27:46 -0700</bug_when>
    <thetext>Created attachment 28763
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115608</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-03-27 14:40:02 -0700</bug_when>
    <thetext>Hixie says: Draw tickmarks as given in list=&quot;&quot;.  If no list=&quot;&quot;, draw them for step=&quot;&quot;, unless step has been set to &quot;any&quot;.

Hyatt says: </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115609</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-03-27 14:40:58 -0700</bug_when>
    <thetext>Bah, didn&apos;t mean to submit that yet.  Anyway, Hyatt says: Don&apos;t want ticks by default.  Perhaps also no ticks for step=1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115615</commentid>
    <comment_count>4</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-03-27 14:59:46 -0700</bug_when>
    <thetext>My proposal: Do what Hixie says, but also don&apos;t draw tickmarks if we don&apos;t have enough room.  Assuming 1-px ticks, you&apos;d need 2n + 1 pixels or more.  If the theme only goes down to k-px ticks, we&apos;d probably want k(2n + 1) free pixels; below that, no tickmarks + no snapping.

Hopefully, this avoids breaking too many existing Mac widgets that don&apos;t want tickmarks, e.g. the Safari RSS widget, because they&apos;d fail the 2n + 1 test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462864</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2011-09-06 14:41:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/10081072&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483137</commentid>
    <comment_count>6</comment_count>
    <who name="Ravi Phaneendra Kasibhatla">ravi.kasibhatla</who>
    <bug_when>2011-10-13 05:22:09 -0700</bug_when>
    <thetext>Is this issue still valid? If yes, I would like to propose a patch for the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483321</commentid>
    <comment_count>7</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-10-13 11:05:12 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Is this issue still valid?

It&apos;s not closed and no one has commented otherwise, so assume yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483733</commentid>
    <comment_count>8</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-10-13 19:47:21 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Is this issue still valid? If yes, I would like to propose a patch for the same.

Yes.
I think Comment #2 to #4 are reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865252</commentid>
    <comment_count>9</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2013-03-28 01:36:55 -0700</bug_when>
    <thetext>This was done as &lt;datalist&gt; support.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>28763</attachid>
            <date>2009-03-19 14:27:46 -0700</date>
            <delta_ts>2009-03-19 14:27:46 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>foo.html</filename>
            <type>text/html</type>
            <size>72</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64">PGZvcm0+ClJhbmdlOiA8aW5wdXQgdHlwZT0icmFuZ2UiIG1pbj0iMSIgbWF4PSIzIiBzdGVwPSIx
Ij48YnI+CjwvZm9ybT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>