<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 - :in-range &amp; :out-of-range CSS pseudo-classes shouldn't match inputs without range limitations"
   href="https://bugs.webkit.org/show_bug.cgi?id=156558">156558</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>:in-range &amp; :out-of-range CSS pseudo-classes shouldn't match inputs without range limitations
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>CSS
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>webkit&#64;chrisrebert.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=276361" name="attach_276361" title="Testcase demonstrating the bug">attachment 276361</a> <a href="attachment.cgi?id=276361&amp;action=edit" title="Testcase demonstrating the bug">[details]</a></span>
Testcase demonstrating the bug

Steps to reproduce the problem:
1. Open the attached testcase in WebKit Nightly on OS X or in iOS 9.3 Safari.
2. Observe the background-colors and borders of the &lt;input&gt;s

What is the expected behavior?
The inputs should have neither a red border nor a red background-color,
because they don't have range limitations ( <a href="https://html.spec.whatwg.org/multipage/forms.html#have-range-limitations">https://html.spec.whatwg.org/multipage/forms.html#have-range-limitations</a> ),
because they have neither `min` nor `max` attributes
and the HTML spec doesn't define a default minimum or maximum for any of these input types.
Therefore, these inputs should fail the 2nd of the 3 conditions required to match :in-range or :out-of-range .

Per <a href="https://html.spec.whatwg.org/multipage/scripting.html#selector-in-range">https://html.spec.whatwg.org/multipage/scripting.html#selector-in-range</a>
<span class="quote">&gt; The :in-range pseudo-class must match all elements that are [...], have range limitations, and [...]</span >

What went wrong?
The inputs have red borders and/or red backgrounds, indicating that they matched the :in-range or :out-of-range pseudo-classes despite not having range limitations.</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>