<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Input type=range does not support validation using pattern attribute"
   href="https://bugs.webkit.org/show_bug.cgi?id=169983">169983</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Input type=range does not support validation using pattern attribute
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 10
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Forms
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>justin&#64;freshinbox.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cdumez&#64;apple.com, wenson_hsieh&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Input element type=range will never trigger the :invalid selector.

For example:

&lt;style&gt;
#foo:invalid ~ .warn{
  border:3px solid red;
}
&lt;/style&gt;

&lt;input type='range' id='foo' value='1' min=1 max=5 pattern=&quot;[1-2]&quot;/&gt;&lt;BR&gt;
&lt;div class=&quot;warn&quot;&gt;Warn&lt;/div&gt;


Setting the knob to the right will not cause the :invalid selector to fire. Basically the :invalid selector never fires.

However changing the type to 'text' and setting the value to '5' will cause the :invalid selector to fire.</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>