1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59

content / test / data / accessibility / html / label-with-selected-option.html [blame]

<html>
<body>
  <div>
    <input type="checkbox" id="test1" />
    <label for="test1" >Test 1: Flash the screen
      <select size="1">
        <option>1</option>
        <option selected>2</option>
        <option>3</option>
      </select>
      times.
    </label>
  </div>
  <div>
    <input type="checkbox" id="test2" />
    <label for="test2">Test 2: Flash the screen
      <select size="3">
        <option>1</option>
        <option selected>2</option>
        <option>3</option>
      </select>
      times.
    </label>
  </div>
  <div>
    <input type="checkbox" id="test3" />
    <label for="test3">Test 3: Flash the screen
      <select size="1">
        <option>1</option>
        <option selected aria-label="two">2</option>
        <option>3</option>
      </select>
      times.
    </label>
  </div>
  <div>
    <input type="checkbox" id="test4" />
    <label for="test4">Test 4: Flash the screen
      <select size="3">
        <option>1</option>
        <option selected aria-label="two">2</option>
        <option>3</option>
      </select>
      times.
    </label>
  </div>
  <div>
    <input type="checkbox" id="test5" />
    <label for="test5">Test 5: Flash the screen
      <select size="3" multiple>
        <option>1</option>
        <option selected aria-label="two">2</option>
        <option selected>3</option>
      </select>
      times.
    </label>
  </div>
</body>
</html>