WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
253454
Web Inspector: Box model should indicate that a margin has been "trimmed" by its containing block's `margin-trim` property
https://bugs.webkit.org/show_bug.cgi?id=253454
Summary
Web Inspector: Box model should indicate that a margin has been "trimmed" by ...
Sammy Gill
Reported
2023-03-06 12:08:51 PST
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Sammy Gill
Comment 1
2023-03-06 12:09:31 PST
I think the solution for this will be to update the margin computed value when we do any trimming
Sammy Gill
Comment 2
2023-03-06 12:09:50 PST
rdar://103374677
Brent Fulgham
Comment 3
2023-04-26 16:01:54 PDT
All subtasks are now complete.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug