Skip to content

Commit

Permalink
[css-position-anchor] anchor-default -> position-anchor
Browse files Browse the repository at this point in the history
Spec just changed.

Bug: 329425863
Change-Id: Ib9b288d58d1820444f146885dc1440c51c06286b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5374283
Commit-Queue: Rune Lillesveen <[email protected]>
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1273436}
  • Loading branch information
Rune Lillesveen authored and BruceDai committed Mar 25, 2024
1 parent b940e61 commit 6e5bcea
Show file tree
Hide file tree
Showing 78 changed files with 126 additions and 126 deletions.
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-center-htb-htb.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.target {
anchor-default: --anchor;
position-anchor: --anchor;
position: absolute;
background: cyan;
justify-self: anchor-center;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-center-htb-vrl.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

.target {
writing-mode: vertical-rl;
anchor-default: --anchor;
position-anchor: --anchor;
position: absolute;
background: cyan;
align-self: anchor-center;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-center-vrl-htb.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

.target {
writing-mode: horizontal-tb;
anchor-default: --anchor;
position-anchor: --anchor;
position: absolute;
background: cyan;
align-self: anchor-center;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-center-vrl-vrl.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.target {
anchor-default: --anchor;
position-anchor: --anchor;
position: absolute;
background: cyan;
justify-self: anchor-center;
Expand Down
4 changes: 2 additions & 2 deletions css/css-anchor-position/anchor-getComputedStyle-003.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}

#target1 {
anchor-default: --a1;
position-anchor: --a1;
}

#anchor2 {
Expand All @@ -62,7 +62,7 @@
}

#target2 {
anchor-default: --a2;
position-anchor: --a2;
}
</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
.target {
position: absolute;
anchor-default: var(--anchor-name);
position-anchor: var(--anchor-name);
top: anchor(bottom, 50px);
}
#a1 { --anchor-name: --a1; }
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-name-style-contained.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
.target {
position: absolute;
anchor-default: var(--anchor-name);
position-anchor: var(--anchor-name);
top: anchor(bottom, 50px);
}
#a1 { --anchor-name: --a1; }
Expand Down
4 changes: 2 additions & 2 deletions css/css-anchor-position/anchor-position-circular.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 left);
top: anchor(--a1 bottom);
background: orange;
Expand All @@ -24,7 +24,7 @@

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: green;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
outline: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-002.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
outline: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-003.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
outline: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-004.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
outline: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-005.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
}

body {
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-position-top-layer-006.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
width: 100px;
height: 100px;
background: lime;
anchor-default: --a;
position-anchor: --a;
}

body {
Expand Down
4 changes: 2 additions & 2 deletions css/css-anchor-position/anchor-scroll-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
position: absolute;
left: anchor(--anchor left);
bottom: anchor(--anchor top);
anchor-default: --anchor;
position-anchor: --anchor;
}

#outer-anchored {
color: yellow;
position: absolute;
left: anchor(--anchor left);
top: anchor(--anchor bottom);
anchor-default: --anchor;
position-anchor: --anchor;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-002.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
height: 50px;
top: anchor(--a1 top);
left: anchor(--a1 right);
anchor-default: --a1;
position-anchor: --a1;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-003.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
position: absolute;
left: anchor(--a left);
bottom: anchor(--a top);
anchor-default: --a;
position-anchor: --a;
width: 50px;
height: 50px;
background: lime;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-004.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

.target {
position: absolute;
anchor-default: --a;
position-anchor: --a;
top: anchor(--a bottom);
left: anchor(--a left);
color: lime;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-005.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
width: 100px;
height: 100px;
bottom: anchor(--a top);
anchor-default: --a;
position-anchor: --a;
background: lime;
}
</style>
Expand Down
6 changes: 3 additions & 3 deletions css/css-anchor-position/anchor-scroll-006.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@

/* Needs scroll adjustment in x axis only */
#target1 {
anchor-default: --a1;
position-anchor: --a1;
left: anchor(left);
top: anchor(--scroller1 bottom);
}

/* Needs scroll adjustment in y axis only */
#target2 {
anchor-default: --a2;
position-anchor: --a2;
top: anchor(top);
left: anchor(--scroller2 right);
}

/* No scroll adjustment needed */
#target3 {
anchor-default: --a3;
position-anchor: --a3;
top: anchor(--scroller3 bottom);
left: anchor(--scroller3 right);
}
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-007.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
height: 50px;
left: anchor(--a3 left);
top: anchor(--a1 top);
anchor-default: --a2;
position-anchor: --a2;
background: lime;
}
</style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 left);
top: anchor(--a1 bottom);
background: green;
Expand All @@ -34,7 +34,7 @@

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: lime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 left);
top: anchor(--a1 bottom);
background: green;
Expand All @@ -40,7 +40,7 @@

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: lime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 left);
top: anchor(--a1 bottom);
background: green;
Expand All @@ -41,7 +41,7 @@

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: lime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 left);
top: anchor(--a1 bottom);
background: green;
}

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: lime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#anchored1 {
position: absolute;
anchor-default: --a1;
position-anchor: --a1;
background: green;
position-try-options: --fallback;
anchor-name: --a2;
Expand All @@ -37,7 +37,7 @@

#anchored2 {
position: absolute;
anchor-default: --a2;
position-anchor: --a2;
left: anchor(--a2 left);
top: anchor(--a2 bottom);
background: lime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#anchored {
position: absolute;
anchor-default: --a;
position-anchor: --a;
left: anchor(--a left);
bottom: anchor(--a top);
width: 100px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
position: fixed;
top: anchor(--a bottom);
left: anchor(--a left);
anchor-default: --a;
position-anchor: --a;
}
</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
position: fixed;
top: anchor(--a bottom);
left: anchor(--a left);
anchor-default: --a;
position-anchor: --a;
}
</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
position: fixed;
top: anchor(--a bottom);
left: anchor(--a left);
anchor-default: --a;
position-anchor: --a;
}
</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
position: fixed;
top: anchor(--a bottom);
left: anchor(--a left);
anchor-default: --a;
position-anchor: --a;
}
</style>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
background: red;
left: 0;
bottom: anchor(--a top);
anchor-default: --a;
position-anchor: --a;
}
#overlap {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-fixedpos-002.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#anchored {
position: fixed;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 right);
top: anchor(--a1 top);
background: green;
Expand Down
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-scroll-fixedpos.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#anchored {
position: fixed;
anchor-default: --a1;
position-anchor: --a1;
left: anchor(--a1 right);
top: anchor(--a1 top);
background: green;
Expand Down
Loading

0 comments on commit 6e5bcea

Please sign in to comment.