Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-align/abspos/default-overflow-with-scroll.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
.container {
position: relative;
overflow: scroll;
scrollbar-width: none;
width: 100px;
height: 100px;
border: solid 2px;
margin: 10px;
}
.vrl {
writing-mode: vertical-rl;
direction: rtl;
}
.abspos {
position: absolute;
background: green;
width: 150px;
height: 150px;
/* Creates an IMCB which is 0x0 in the middle of the container. */
inset: 50px;
}
</style>
<body onload="checkLayout('.container')">
<div class="container" data-expected-scroll-width="200" data-expected-scroll-height="200">
<div class="abspos" style="place-self: start;"></div>
</div>
<div class="container" data-expected-scroll-width="150" data-expected-scroll-height="150">
<div class="abspos" style="place-self: center;"></div>
</div>
<div class="container" data-expected-scroll-width="150" data-expected-scroll-height="150">
<div class="abspos" style="place-self: end;"></div>
</div>
<div class="container vrl" data-expected-scroll-width="200" data-expected-scroll-height="200">
<div class="abspos" style="place-self: start;"></div>
</div>
<div class="container vrl" data-expected-scroll-width="150" data-expected-scroll-height="150">
<div class="abspos" style="place-self: center;"></div>
</div>
<div class="container vrl" data-expected-scroll-width="150" data-expected-scroll-height="150">
<div class="abspos" style="place-self: end;"></div>
</div>
<div id=log></div>