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

content / test / data / accessibility / html / input-radio-chunked.html [blame]

<!--
@AURALINUX-ALLOW:posinset*
@AURALINUX-ALLOW:setsize*
@BLINK-ALLOW:setSize*
@BLINK-ALLOW:posInSet*
@MAC-ALLOW:AXARIASetSize
@MAC-ALLOW:AXARIAPosInSet
@WIN-ALLOW:setsize*
@WIN-ALLOW:posinset*
@WAIT-FOR:done
-->
<!--
TODO(crbug.com/40923583): if we also allowed this:
@BLINK-ALLOW:radioGroupIds=*
then we would get flaky test failures from the radioGroupIds not being
invalidated correctly.  If we eventually fix this, we should add this
as allowed.
-->
<div>
  <input type="radio" name="dogs" value="airedale">Airedale
  <div lang="en-CA">
    <input type="radio" name="dogs" value="beagle">Beagle
  </div>
  <script>
    document.getElementsByTagName("input")[1].offsetWidth;
  </script>
  <input type="radio" name="dogs" value="chihuahua">Chihuahua
  <!-- a fourth input will be created here -->
</div>
<script>
  document.addEventListener('DOMContentLoaded', () => {
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        let div = document.getElementsByTagName("div")[0];
        let input = document.createElement("input");
        input.type = "radio";
        input.name = "dogs"
        input.value = "dachshund";
        div.appendChild(input);
        div.appendChild(document.createTextNode("Dachshund"));

        document.title = 'done';
      });
    })
  });
</script>