0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 08:57:38 +00:00

change anchor method

This updates the position try results by using a different method of setting the area of the anchored element.  Rather than using the inset properties with `anchor()`, it uses `position-area`.
This commit is contained in:
Gazook89
2026-06-10 16:28:34 -05:00
parent 6e86b1001c
commit 1fe19578c2
+4 -6
View File
@@ -6,18 +6,16 @@
} }
.menu-list { .menu-list {
position : fixed; position : absolute;
z-index : 1000; z-index : 1000;
inset-block-start: anchor(bottom); position-area : block-end span-inline-end;
inset-inline-start: anchor(left); position-try: flip-inline flip-block;
position-try: flip-inline;
color: inherit; // [popover] gets a `canvastext` color value from useragent. color: inherit; // [popover] gets a `canvastext` color value from useragent.
> .menu-wrapper { > .menu-wrapper {
position:relative; position:relative;
> .menu-list { > .menu-list {
margin: 0 0px; margin: 0 0px;
inset-block-start: anchor(top); position-area: inline-end span-block-end;
inset-inline-start: anchor(right);
position-try: flip-inline; position-try: flip-inline;
} }
} }