@@ -916,19 +916,19 @@ as if by an additional ''translate()'' transform.
916
916
917
917
<div class=example>
918
918
For example,
919
- in ''.bar { top : anchor(--foo top ); }'' ,
919
+ in ''.bar { inset-block-start : anchor(--foo block-start ); }'' ,
920
920
the ''anchor()'' will resolve to the length
921
- that'll line up the <code> .bar</code> element's top edge
922
- with the ''--foo'' anchor's top edge.
921
+ that'll line up the <code> .bar</code> element's block-start edge
922
+ with the ''--foo'' anchor's block-start edge.
923
923
924
924
On the other hand,
925
- in ''.bar { bottom : anchor(--foo top ); }'' ,
925
+ in ''.bar { inset-block-end : anchor(--foo block-start ); }'' ,
926
926
it will instead resolve to the length
927
- that'll line up the <code> .bar</code> element's <em> bottom </em> edge
928
- with the ''--foo'' anchor's top edge.
927
+ that'll line up the <code> .bar</code> element's <em> block-end </em> edge
928
+ with the ''--foo'' anchor's block-start edge.
929
929
930
- Since 'top ' and 'bottom ' values specify insets from different edges
931
- (the top and bottom of the element's [=containing block=] ,
930
+ Since 'inset-block-start ' and 'inset-block-end ' values specify insets from different edges
931
+ (the block-start and block-end of the element's [=containing block=] ,
932
932
respectively),
933
933
the same ''anchor()'' will usually resolve to different lengths in each.
934
934
</div>
@@ -1716,8 +1716,7 @@ the [=position options list=] will be tried.
1716
1716
.list {
1717
1717
position: fixed;
1718
1718
position-anchor: --foo;
1719
- top: anchor(bottom);
1720
- left: anchor(left);
1719
+ position-area: block-end span-inline-end;
1721
1720
align-self: start;
1722
1721
position-try-fallbacks: --bottom-scrollable, flip-block, --top-scrollable;
1723
1722
position-try-order: most-height;
@@ -1726,18 +1725,15 @@ the [=position options list=] will be tried.
1726
1725
align-self: stretch;
1727
1726
}
1728
1727
@position-try --top-scrollable {
1729
- top: 0;
1730
- bottom: anchor(top);
1728
+ position-area: block-start span-inline-end;
1731
1729
align-self: stretch;
1732
1730
}
1733
1731
</pre>
1734
1732
1735
1733
The ''flip-block'' auto-generated option and the ''--top-scrollable'' option
1736
1734
will always find the same available height,
1737
- since both of them stretch vertically from ''top: 0''
1738
- (the top edge of the viewport)
1739
- to ''bottom: anchor(top)''
1740
- (the top of the anchor),
1735
+ since both of them stretch vertically from the top edge of the containing block
1736
+ to the top of the anchor,
1741
1737
so they'll retain their specified order.
1742
1738
This causes the element to first try to align against the anchor
1743
1739
at its natural height
0 commit comments