[Webkit-unassigned] [Bug 253454] New: Web Inspector: Box model should indicate that a margin has been "trimmed" by its parent's `margin-trim` property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 6 12:08:51 PST 2023


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

            Bug ID: 253454
           Summary: Web Inspector: Box model should indicate that a margin
                    has been "trimmed" by its parent's `margin-trim`
                    property
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sgill26 at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Web Inspector currently does not take into account the rendered box for showing the element’s box model, but with `margin-trim`, the computed margins may no longer be the same as the used margins, as they might be trimmed by the parent container. We should provide some sort of treatment to indicate this - we should also think a bit more deeply about how to do so, since we currently allow editing margins in the box model, but now that edit may not visually affect anything if that margin was trimmed.

Without this work, the box model may show a margin for an edge of an element where no margin was applied at layout time. Not a horrible regression, but odd.

-- 
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/20230306/d9233378/attachment.htm>


More information about the webkit-unassigned mailing list