<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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>justin@freshinbox.com
</td>
</tr>
<tr>
<th>CC</th>
<td>cdumez@apple.com, wenson_hsieh@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Input element type=range will never trigger the :invalid selector.
For example:
<style>
#foo:invalid ~ .warn{
border:3px solid red;
}
</style>
<input type='range' id='foo' value='1' min=1 max=5 pattern="[1-2]"/><BR>
<div class="warn">Warn</div>
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>