Skip to content

Commit 0af22ef

Browse files
committed
[css-anchor-1] Fix example markup
1 parent 530c6e1 commit 0af22ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-anchor-1/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -589,14 +589,14 @@ Its values are identical to the <<anchor-element>> term in ''anchor()'' and ''an
589589
<pre highlight=css>
590590
.anchored {
591591
position: absolute;
592-
top: anchor(bottom, .5em);
592+
top: calc(.5em + anchor(bottom));
593593
position-fallback: --flip-to-top;
594594
}
595595

596596
@position-fallback --flip-to-top {
597597
@try {
598598
top: auto;
599-
bottom: anchor(top, .5em);
599+
bottom: calc(.5em + anchor(top));
600600
}
601601
}
602602

0 commit comments

Comments
 (0)