1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102

content / test / data / accessibility / css / anchor-positioning-without-details.html [blame]

<!--
@BLINK-ALLOW:details*
-->
<html>
<head><style>
#tooltip-anchor {
  anchor-name: --anchor-tooltip;
  position: absolute;
}
#tooltip-target {
  position: absolute;
  top: anchor(--anchor-tooltip bottom);
}
#labelledby-anchor {
  anchor-name: --anchor-labelledby;
  position: absolute;
}
#labelledby-target {
  position: absolute;
  top: anchor(--anchor-labelledby bottom);
}
#describedby-anchor {
  anchor-name: --anchor-describedby;
  position: absolute;
}
#describedby-target {
  position: absolute;
  top: anchor(--anchor-describedby bottom);
}
#controls-anchor {
  anchor-name: --anchor-controls;
  position: absolute;
}
#controls-target {
  position: absolute;
  top: anchor(--anchor-controls bottom);
}
#owns-anchor {
  anchor-name: --anchor-owns;
  position: absolute;
}
#owns-target {
  position: absolute;
  top: anchor(--anchor-owns bottom);
}
#multiple-anchor-1 {
  anchor-name: --anchor-multiple-1;
  position: absolute;
}
#multiple-anchor-2 {
  anchor-name: --anchor-multiple-2;
  position: absolute;
}
#multiple-target {
  position: absolute;
  top: anchor(--anchor-multiple-1 bottom);
  bottom: anchor(--anchor-multiple-2 bottom);
}
#dom-siblings-anchor {
  anchor-name: --anchor-sibling;
  position: absolute;
}
#dom-siblings-target {
  position: absolute;
  top: anchor(--anchor-sibling bottom);
}
</style></head>
<body>
  <!-- No aria-details relationship should exist in the following examples. -->
  <p id="tooltip-anchor">
    tooltip-anchor
  </p>
  <p aria-labelledby="labelledby-target" id="labelledby-anchor">
    labelledby-anchor
  </p>
  <p aria-describedby="describedby-target" id="describedby-anchor">
    describedby-anchor
  </p>
  <p aria-controls="controls-target" id="controls-anchor">
    controls-anchor
  </p>
  <p aria-owns="owns-target" id="owns-anchor">
    owns-anchor
  </p>
  <p id="multiple-anchor-1">
    multiple-anchor-1
  </p>
  <p id="multiple-anchor-2">
    multiple-anchor-2
  </p>
  <p id="dom-siblings-anchor">
    sibling-anchor
  </p>
  <div id="dom-siblings-example-target">positioned element (dom sibling of anchor)</div>
  <div role="tooltip" id="tooltip-example-target">positioned element (tooltip)</div>
  <div id="labelledby-target">positioned element (labelledby)</div>
  <div id="describedby-target">positioned element (describedby)</div>
  <div id="controls-target">positioned element (aria-controls)</div>
  <div id="owns-target">positioned element (aria-owns)</div>
  <div id="multiple-target">positioned element (with multiple anchors)</div>
</body>
</html>