Re: [csswg-drafts] [css-inline-3] text-box-trim accumulation (#5426)

Hi,

I'm not sure if this is related to this issue, but I'm facing a strange output and I'm not able to understand if this is expected or not (and if it is, this is extremely unintuitive): https://codepen.io/bakura10/pen/GgKMvqR

I'm applying the text-box on the parent, so the container now no longer wrap the content. I've tried to set the text-box on the button, but this does not seem to work.

<img width="418" alt="image" src="https://github.com/user-attachments/assets/0f793d56-ce5a-4629-8eb9-0213b1c930d0" />

Ideally, this is the end result I would like:

<img width="416" alt="image" src="https://github.com/user-attachments/assets/c8f524ef-d8d2-4e33-aeeb-32a0c53b7d43" />

I can of course use trim-start instead of trim-both, but I don't control the content, so the last element might be something different than a button.


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


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

Received on Tuesday, 31 December 2024 06:47:31 UTC