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

content / test / data / accessibility / aria / aria-gridcell-focused-only.html [blame]

<!--
@MAC-ALLOW:AXRoleDescription
@MAC-ALLOW:AXSelected=*
@WIN-ALLOW:SELECT*
@WIN-ALLOW:xml-roles*
@AURALINUX-ALLOW:xml-roles*
@AURALINUX-ALLOW:col*
@AURALINUX-ALLOW:row*
@AURALINUX-ALLOW:select*
@WAIT-FOR:Done
-->
<!DOCTYPE html>
<html>
<body>
<div role="grid">
  <div role="row">
    <span role="columnheader">Browser</span>
    <span role="columnheader">Rendering Engine</span>
  </div>
  <div role="row">
    <span role="gridcell" tabindex="-1">Chrome</span>
    <!-- Even if "blink" element is focused (from the script), it doesn't mean
      it should be marked as selected-->
    <span role="gridcell" id="blink" tabindex="-1">Blink</span>
  </div>
</div>
</body>

<script>
  document.getElementById('blink').focus();
  document.body.appendChild(document.createTextNode("Done"));
</script>

</html>