wpt / css / css-anchor-position / anchor-position-top-layer-007.html

Status: FAIL | Duration: 1ms | Subtests: 0/1 | Open test on wpt.live | wpt.fyi

/css/css-anchor-position/anchor-position-top-layer-007.html

<!DOCTYPE html>
<link rel="help" href="https://issues.chromium.org/issues/352005194">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
#container {
  position: fixed;
  inset: 0;
}
#anchor {
  position: fixed;
  top: 100px;
  left: 100px;
  width: 50px;
  height: 80px;
  anchor-name: --anchor;
}
#target {
  position: fixed;
  inset: auto;
  top: anchor(--anchor top);
  left: anchor(--anchor right);
  margin: 0;
}
</style>
<body onload="checkLayout('#target')">
<div id="container">
  <div id="anchor"></div>
  <dialog id="target" data-offset-x=150 data-offset-y=100></dialog>
</div>
<script>
document.getElementById('target').showModal();
</script>