summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-ui-invalid/select/select-required-invalid-changed-2.html
blob: c57e38206f531c0c2efdb620cb760c822506e582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html class='reftest-wait'>
  <!-- Test: if select is required and the selected option has an empty
             string value and the selection did changed,
             :-moz-ui-invalid should apply. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <body onload="document.getElementById('s').selectedIndex = 0;
                document.documentElement.className = '';">
    <select id='s' class='invalid' required>
      <option value="">foo</option>
    </select>
  </body>
</html>