: 100px;
  height: 100px;
  background: lightblue;

  content-visibility: hidden;
}
#inner {
  margin: 25px;
  width: 50px;
  height: 50px;
  background lightgreen;
}
</style>

<body id="body">
<div id="outer"><div id="inner"></div></div>
</body>

<script>
async_test((t) => {
  const container = document.getElementById("outer");

  let target = document.elementFromPoint(50, 50);
  t.step(() => assert_equals(target.id, "outer", "center hits outer"));
  target = document.elementFromPoint(10, 50);
  t.step(() 