r-actions.js"></script>
<script src='../../resources/shadow-dom.js'></script>
<script src="../../resources/focus-utils.js"></script>

<style>
.wrapper {
  display: grid;
  reading-flow: grid-order;
}
</style>

<!-- Since B,A are inside a display: contents, they are visited together. -->
<!-- Since B has order 1, its display: contents parent is visited first. -->
<div class="test-case" data-expect="B,A,C"
      data-description="Grid items in shadow host that is a display contents grid item">
  <div class=wr