Re: [csswg-drafts] [css-inline-3] inline boxes and line-fit-edge vs text-box-trim/edge (#10834)

**Proposal Part A:** When `line-fit-edge` is `normal`, we ignore the margin/border/padding and just use the `line-height` for sizing. In this case, `text-box-trim` changes the content edge (affecting backgrounds and borders), but does not change the height contribution of the inline (which continues to be based on `line-height`).

I think this is the most reasonable thing we can do here, given the constraints and the precedent of existing behavior.

**Proposal Part B:** When `line-fit-edge` is **not** `normal`, we use an inline's margin-box edge as its height contribution. In this case, `text-box-trim` indirectly affects its height contribution, by affecting the margin edges as resolved above--and in addition, if `text-box-trim` reduces the effective height of the inline box compared to `line-fit-edge`, that amount is propagated as a negative margin (the same way as a specified negative margin is propagated) to inline descendants.

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


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

Received on Tuesday, 17 December 2024 23:46:19 UTC