1
0
Fork 0
firefox/testing/web-platform/tests/css/css-anchor-position/auto-margins-position-area.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

39 lines
837 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/">
<style>
.container {
position: relative;
width: 100px;
height: 100px;
border: solid 3px;
}
.anchor {
anchor-name: --a;
background: lime;
width: 20px;
height: 20px;
position: relative;
left: 20px;
top: 30px;
}
.abspos {
background: cornflowerblue;
margin: auto;
position: absolute;
position-area: bottom;
position-anchor: --a;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.abspos')">
<div class="container">
<div class="anchor"></div>
<div class="abspos" data-offset-x=10 data-offset-y=65>
<div style="width: 80px; height: 20px;"></div>
</div>
</div>