[Webkit-unassigned] [Bug 233956] New: WebKit thinks that a formatting context root stops fitting in a tiny space, when you give it a negative margin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 7 16:14:51 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=233956

            Bug ID: 233956
           Summary: WebKit thinks that a formatting context root stops
                    fitting in a tiny space, when you give it a negative
                    margin
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dholbert at mozilla.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 446248

  --> https://bugs.webkit.org/attachment.cgi?id=446248&action=review

testcase 1

STR:
1. Load attached testcase. (also available on jsfiddle: https://jsfiddle.net/dholbert/ujphfkqz/ )

EXPECTED RESULTS:
Case 1 and Case 2 inside of the testcase should look the same.

ACTUAL RESULTS:
In "Case 2", the "A B" text is pushed down, for no clear reason.

The only difference between Case 1 and Case 2 is: in Case 2, the "A B" element has a *negative margin*. So if anything, it should fit even better; there should be even less reason to push it down.


Chrome has the same bug, tracked in https://bugs.chromium.org/p/chromium/issues/detail?id=1141209 .

Firefox gives EXPECTED RESULTS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211208/b9999ff5/attachment.htm>


More information about the webkit-unassigned mailing list