Skip to content

Commit 9db3ea2

Browse files
dshin-mozmoz-wptsync-bot
authored andcommitted
Expand definition of Invalid overflow rect to be zero-sized rects that are offset from origin as well.
`IsValidOverflowRect` was originally introduced to consider only zero-sized rects that are located at origin to be invalid in Bug 1800907. However, it doesn't make sense for a zero-sized rect located away from origin to contribute to overflow. Differential Revision: https://phabricator.services.mozilla.com/D234097 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1940938 gecko-commit: dd59e15ede57dde39ced180086733c9e6a1de2c6 gecko-reviewers: layout-reviewers, TYLin
1 parent 0828391 commit 9db3ea2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html class="reftest-wait">
3+
<link rel="author" title="David Shin" href="[email protected]">
4+
<link rel="help" href="bugzilla.mozilla.org/show_bug.cgi?id=1940938">
5+
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
6+
<p>Test passes if there is a filled green square.</p>
7+
<div id="dut" style="overflow: hidden; height: 100px; width: 100px; background: red;">
8+
<div style="width: 100px; height: 100px; background: green;"></div>
9+
<div style="font-size: 200px;"><span>
10+
</span></div>
11+
</div>
12+
<script>
13+
onload = function () {
14+
dut.scrollTop = 100;
15+
document.documentElement.className = "";
16+
}
17+
</script>
18+
</html>

0 commit comments

Comments
 (0)