Skip to content

Commit e8b90ce

Browse files
fantasaimoz-wptsync-bot
authored andcommitted
Bug 1961977 [wpt PR 52098] - [css-anchor-position-1] Update default alignment in center track, a=testonly
Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098
1 parent 92ffb27 commit e8b90ce

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

testing/web-platform/tests/css/css-anchor-position/position-area-align-justify-wm-dir.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
position: absolute;
2323
width: 10px;
2424
height: 10px;
25-
inset: 10px;
25+
inset: 10px 15px 20px 25px;
2626
position-anchor: --anchor;
2727
}
2828
style>
@@ -41,10 +41,10 @@
4141
}, "Offsets for: " + position_area + " with writing-mode / direction: " + writing_direction);
4242
}
4343

44-
const top_left = {left:80, top:80, width:10, height:10};
45-
const top_right = {left:210, top:80, width:10, height:10};
46-
const bottom_left = {left:80, top:210, width:10, height:10};
47-
const bottom_right = {left:210, top:210, width:10, height:10};
44+
const top_left = {left:75, top:70, width:10, height:10};
45+
const top_right = {left:225, top:70, width:10, height:10};
46+
const bottom_left = {left:75, top:210, width:10, height:10};
47+
const bottom_right = {left:225, top:210, width:10, height:10};
4848

4949
anchored.style.writingMode = "horizontal-tb";
5050
anchored.style.direction = "ltr";

testing/web-platform/tests/css/css-anchor-position/position-area-align-justify.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
position: absolute;
2323
width: 10px;
2424
height: 10px;
25-
inset: 10px;
25+
inset: 10px 15px 20px 25px;
2626
position-anchor: --anchor;
2727
}
2828
style>
@@ -46,20 +46,20 @@
4646
test_position_area("span-all", {left:145, top:145, width:10, height:10});
4747

4848
// Single region spans
49-
test_position_area("top left", {left:80, top:80, width:10, height:10});
50-
test_position_area("top center", {left:145, top:80, width:10, height:10});
51-
test_position_area("top right", {left:210, top:80, width:10, height:10});
52-
test_position_area("center left", {left:80, top:145, width:10, height:10});
53-
test_position_area("center center", {left:145, top:145, width:10, height:10});
54-
test_position_area("center right", {left:210, top:145, width:10, height:10});
55-
test_position_area("bottom left", {left:80, top:210, width:10, height:10});
56-
test_position_area("bottom center", {left:145, top:210, width:10, height:10});
57-
test_position_area("bottom right", {left:210, top:210, width:10, height:10});
49+
test_position_area("top left", {left:75, top:70, width:10, height:10});
50+
test_position_area("top center", {left:150, top:70, width:10, height:10});
51+
test_position_area("top right", {left:225, top:70, width:10, height:10});
52+
test_position_area("center left", {left:75, top:140, width:10, height:10});
53+
test_position_area("center center", {left:150, top:140, width:10, height:10});
54+
test_position_area("center right", {left:225, top:140, width:10, height:10});
55+
test_position_area("bottom left", {left:75, top:210, width:10, height:10});
56+
test_position_area("bottom center", {left:150, top:210, width:10, height:10});
57+
test_position_area("bottom right", {left:225, top:210, width:10, height:10});
5858

5959
// Multi-region spans
60-
test_position_area("top span-left", {left:180, top:80, width:10, height:10});
61-
test_position_area("top span-right", {left:110, top:80, width:10, height:10});
62-
test_position_area("span-top left", {left:80, top:180, width:10, height:10});
63-
test_position_area("span-bottom left", {left:80, top:110, width:10, height:10});
60+
test_position_area("top span-left", {left:175, top:70, width:10, height:10});
61+
test_position_area("top span-right", {left:125, top:70, width:10, height:10});
62+
test_position_area("span-top left", {left:75, top:170, width:10, height:10});
63+
test_position_area("span-bottom left", {left:75, top:110, width:10, height:10});
6464

6565
script>

0 commit comments

Comments
 (0)