forked from mirrors/gecko-dev
Automatic update from web-platform-tests [LayoutNG] Account for relpos offset when adding layout overflow for floats. We missed accounting for the relpos offset when adding the layout overflow for floats. This resulted in a larger overflow area than intended. Bug: 1007026 Change-Id: Ib35e0444c4a069a5399aa8967b5ebcf853677e8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1835973 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#703016} -- wpt-commits: 0c2f81c644dc1220891a40468a4a75eddbe51010 wpt-pr: 19492
24 lines
548 B
HTML
24 lines
548 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollable">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
|
<style>
|
|
.container {
|
|
background: green;
|
|
width: 100px;
|
|
height: 100px;
|
|
overflow: auto;
|
|
}
|
|
.float {
|
|
float: left;
|
|
position: relative;
|
|
width: 50px;
|
|
height: 50px;
|
|
top: calc(50% - 100vh);
|
|
transform: translateY(-50%) translateY(100vh);
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square.</p>
|
|
<div class="container">
|
|
<div class="float"></div>
|
|
</div>
|