}
</style>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script>
  function updateAlignmentAndCheckLayout() {
    let item = document.getElementById("item");
    item.style.alignSelf = "center";
    item.style.justifySelf = "center";
    checkLayout('.grid');
  }
</script>
</head>

<body onload="updateAlignmentAndCheckLayout()">

  <div class="grid" data-expected-width="800" data-expected-heig