Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 0c2f81c

Browse files
bfgeekchromium-wpt-export-bot
authored andcommitted
[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 <[email protected]> Reviewed-by: Koji Ishii <[email protected]> Cr-Commit-Position: refs/heads/master@{#703016}
1 parent 13609f8 commit 0c2f81c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollable">
4+
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
5+
<style>
6+
.container {
7+
background: green;
8+
width: 100px;
9+
height: 100px;
10+
overflow: auto;
11+
}
12+
.float {
13+
float: left;
14+
position: relative;
15+
width: 50px;
16+
height: 50px;
17+
top: calc(50% - 100vh);
18+
transform: translateY(-50%) translateY(100vh);
19+
}
20+
</style>
21+
<p>Test passes if there is a filled green square.</p>
22+
<div class="container">
23+
<div class="float"></div>
24+
</div>

0 commit comments

Comments
 (0)