RESOLVED FIXED 253606
[margin-trim] Trimmed block-start margins for boxes in a block container should be reflected in computed style
https://bugs.webkit.org/show_bug.cgi?id=253606
Summary [margin-trim] Trimmed block-start margins for boxes in a block container shou...
Sammy Gill
Reported 2023-03-08 14:34:45 PST
The web inspector shows the untrimmed margins for a box even if has been trimmed by the containing block's margin-trim property.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-03-08 14:35:02 PST
Sammy Gill
Comment 2 2023-03-08 14:57:22 PST
Sammy Gill
Comment 3 2023-04-11 15:06:24 PDT
Circling back to this after working on the flex and grid cases. I think we can achieve this by adding some extra information in layout state when a block container has block-start margin trim specified on it. We will check if this state is set as we recurse into the nested children and use it to determine if those nested children should trim also. The nested content will also need to take into consideration some other pieces of information, such as if its children's margins can collapse with its margin before (e.g. it does not have any border/padding)
Sammy Gill
Comment 4 2023-04-24 13:05:39 PDT
Sammy Gill
Comment 5 2023-04-25 20:20:54 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/39705
EWS
Comment 6 2023-04-26 07:46:44 PDT
Committed 263412@main (99e30b0ca8f6): <https://commits.webkit.org/263412@main> Reviewed commits have been landed. Closing PR #12884 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.