Skip to content

Commit aa83c64

Browse files
bfgeekchromium-wpt-export-bot
authored andcommitted
[anchor] Update implicit anchor tests to include position-anchor:auto
These tests now pass with or without the CSSPositionAnchorNone flag enabled. Bug: 460415950 Change-Id: I6ca399688bec09d508d90d782b411cc3a7547cb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7155370 Reviewed-by: Ian Kilpatrick <[email protected]> Reviewed-by: David Grogan <[email protected]> Commit-Queue: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#1546679}
1 parent 340ed56 commit aa83c64

6 files changed

+6
-0
lines changed

css/css-anchor-position/anchor-function-pseudo-element-implicit-anchor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
width: 100px;
1717
height: 100px;
1818
position: absolute;
19+
position-anchor: auto;
1920
}
2021
#target.moved {
2122
margin-top: 200px;

css/css-anchor-position/anchor-transition-attr.tentative.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
}
2626
#anchored {
2727
position: absolute;
28+
position-anchor: auto;
2829
width: anchor-size(width);
2930
height: anchor-size(height);
3031
top: anchor(top);

css/css-anchor-position/position-area-pseudo-element-implicit-anchor-dynamic.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
width: 100px;
1616
height: 100px;
1717
position: absolute;
18+
position-anchor: auto;
1819
}
1920
#target.moved {
2021
margin-top: 100px;

css/css-anchor-position/position-area-pseudo-element-implicit-anchor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
width: 100px;
1616
height: 100px;
1717
position: absolute;
18+
position-anchor: auto;
1819
}
1920
#target::before {
2021
position-area: center right;

css/css-anchor-position/pseudo-element-implicit-anchor-center.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#anchor::after {
1414
content: "";
1515
position: absolute;
16+
position-anchor: auto;
1617
width: 100px;
1718
height: 100px;
1819
background: green;

css/css-anchor-position/pseudo-element-implicit-anchor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#anchor::after {
77
content: "";
88
position: absolute;
9+
position-anchor: auto;
910
width: 100px;
1011
height: 100px;
1112
bottom: anchor(top);

0 commit comments

Comments
 (0)