We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530c6e1 commit 0af22efCopy full SHA for 0af22ef
1 file changed
css-anchor-1/Overview.bs
@@ -589,14 +589,14 @@ Its values are identical to the <<anchor-element>> term in ''anchor()'' and ''an
589
<pre highlight=css>
590
.anchored {
591
position: absolute;
592
- top: anchor(bottom, .5em);
+ top: calc(.5em + anchor(bottom));
593
position-fallback: --flip-to-top;
594
}
595
596
@position-fallback --flip-to-top {
597
@try {
598
top: auto;
599
- bottom: anchor(top, .5em);
+ bottom: calc(.5em + anchor(top));
600
601
602
0 commit comments