[Webkit-unassigned] [Bug 284441] New: WebKit ignores margin-top on 'legend' element (in fieldset)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 10 21:51:10 PST 2024


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

            Bug ID: 284441
           Summary: WebKit ignores margin-top on 'legend' element (in
                    fieldset)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            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

STR:
1. Load https://bug1936475.bmoattachments.org/attachment.cgi?id=9442850

EXPECTED RESULTS:
100px of empty space above the legend.

ACTUAL RESULTS:
No empty space.

Firefox gives EXPECTED RESULTS; WebKit (and Chromium) give ACTUAL RESULTS.

It looks like WebKit and Chromium honor `margin` on all other sides of the legend; just not the top for some reason.

For reference, I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1936475 to investigate this on the Firefox side since we got a report (https://bugzilla.mozilla.org/show_bug.cgi?id=1935129) of a site that looks different-though-not-necessarily-broken in Firefox due to the site (maybe-inadvertently?) putting margin-top on a legend element. I also filed https://issues.chromium.org/issues/383368170 on this in Chromium.

-- 
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/20241211/213a92ea/attachment.htm>


More information about the webkit-unassigned mailing list