Re: [csswg-drafts] [css-box-4] Applying margin-trim to inlines (#6922)

Hi,

I tried to use margin-trim, but it seems it only trim margins of block children. This caught me a bit by surprise and reduce a lot the use cases of this feature. For instance here we have a label set in inline-block with a margin-block-start, I would have assumed margin-trim to cut the margin... but it's not happening unless the label is block (but this cause other issues as it would expand to the whole container):

<img width="935" alt="image" src="https://github.com/w3c/csswg-drafts/assets/1198915/fed28e4d-02d6-4b57-9b12-0e9c4af67676">

What is the rationale for not removing margin in this situation?

-- 
GitHub Notification of comment by bakura10
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6922#issuecomment-1788659964 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 1 November 2023 09:29:35 UTC