Skip to content

Commit

Permalink
Cleanup of some anchor pos WPTs
Browse files Browse the repository at this point in the history
Full credit to @jgerigmeyer [1] for these. None should have a functional
impact on the test.

[1] master...oddbird:wpt:hotfix-typos

Bug: 1309178
Change-Id: I79cb4b53f985bd1682171842757a459d27519797
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4160269
Reviewed-by: Xiaocheng Hu <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Xiaocheng Hu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1092109}
  • Loading branch information
mfreed7 authored and chromium-wpt-export-bot committed Jan 13, 2023
1 parent 3103e58 commit 79afaaf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-name-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
</div>
<div class="anchor1" style="width: 30px"></div>
<div class="target" data-expected-width=10></div>
<div>
</div>
</body>
2 changes: 1 addition & 1 deletion css/css-anchor-position/anchor-name-inline-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
</span>
<span class="target" data-expected-width=30></span>
</div>
<div>
</div>
</body>
16 changes: 9 additions & 7 deletions css/css-anchor-position/anchor-position-dynamic-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@
height: 100px;
}
</style>
<body id="container">
<div id="a1"></div>
<div id="a2"></div>
<div id="ref"></div>
<div id="target"
data-offset-x=200 data-offset-y=100
data-expected-width=300 data-expected-height=100></div>
<body>
<div id="container">
<div id="a1"></div>
<div id="a2"></div>
<div id="ref"></div>
<div id="target"
data-offset-x=200 data-offset-y=100
data-expected-width=300 data-expected-height=100></div>
</div>
<script>
document.body.offsetTop; // Force layout.
container.classList.add('after');
Expand Down

0 comments on commit 79afaaf

Please sign in to comment.