3 ms·
With this API this would be: .target { anchor-name: --myname; } .tooltip { left: anchor(--myname left); bottom: calc(anchor(--myname top) -
by bfgeek 4y ago
With this API this would be:
.target {
anchor-name: --myname;
}
.tooltip {
left: anchor(--myname left);
bottom: calc(anchor(--myname top) - 20px);
}
https://jsfiddle.net/3rasnhyp/ https://jsfiddle.net/3rasnhyp/