chromium/third_party/blink/web_tests/external/wpt/html/semantics/popovers/popover-anchor-display-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<link rel=author href="mailto:[email protected]">

<p>There should be a green box attached to the right side of each orange box.</p>
<div id=proper_anchors class=wrapper>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
</div>

<p>There should NOT be any red boxes next to the orange ones. (Red ones down below are ok.)</p>
<div id=improper_anchors class=wrapper>
  <div><div class=anchor></div><div class=popover></div></div>
  <div><div class=anchor></div><div class=popover></div></div>
</div>

<style>
  body { margin:0; padding:0; box-sizing: border-box; }
  p {height: 25px;}
  .wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .wrapper>div {
    position:relative;
    width: 125px;
    height: 75px;
    font-size: 0;
  }
  .wrapper>div div {
    display:inline-block;
    width: 50px;
    height: 50px;
  }
  .anchor {
    background: orange;
  }
  #proper_anchors .popover {
    background: lime;
  }
  #improper_anchors .popover {
    background: red;
    position:fixed;
    left: 0;
    top: 0;
  }
</style>