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

content / test / data / accessibility / event / css-visibility-descendants.html [blame]

<!--
@WIN-DENY:IA2_EVENT_TEXT_INSERTED*
@WIN-DENY:IA2_EVENT_TEXT_REMOVED*
-->
<html>
<head>
<style>
  .a { visibility: visible; }
  .b { visibility: hidden; }
  body.flip .a { visibility: hidden; }
  body.flip .b { visibility: visible; }
</style>
</head>
<body>
<!-- Show/hide events only need to occur on the root of what's shown/hidden,
     not for each descendant -->
<div role="toolbar">
  <div id="heading-root" role="heading" aria-label="Heading" class="a">
    <div id="heading-child">
      <div id="heading-grandchild"></div>
    </div>
  </div>
  <div id="banner-root" role="banner" aria-label="Banner" class="b">
    <div id="banner-child">
      <div id="banner-grandchild"></div>
    </div>
  </div>
</div>
<script>
  function go() {
    document.body.className = 'flip';
  }
</script>
</body>
</html>