From 9db3ea22736dfecbf1de4e149e2b5c49d5e0978d Mon Sep 17 00:00:00 2001 From: David Shin Date: Wed, 15 Jan 2025 20:03:45 +0000 Subject: [PATCH] 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 --- ...scrollable-overflow-empty-newline-span.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 css/css-overflow/scrollable-overflow-empty-newline-span.html diff --git a/css/css-overflow/scrollable-overflow-empty-newline-span.html b/css/css-overflow/scrollable-overflow-empty-newline-span.html new file mode 100644 index 00000000000000..39f72d9fbff420 --- /dev/null +++ b/css/css-overflow/scrollable-overflow-empty-newline-span.html @@ -0,0 +1,18 @@ + + + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+ +