Re: [csswg-drafts] [css-overflow-4] How do `-webkit-line-clamp` and `line-clamp` interact when both are specified? (#10439)

I just realized that if an element has `display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3`, which does clamp, and you copy the styles to a different element using JS (assuming `line-clamp` is exposed and its longhands aren't), you'd get a result that *doesn't* clamp. This is because clamping relies on the *specified* value of `display` being `-webkit(-inline)-box`, but its computed value is changed to `flow-root`.

I wonder if, given this, we might want to make `-webkit-legacy` resolve to either `none` or a non-legacy value at computed value time.

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


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

Received on Tuesday, 22 April 2025 19:03:29 UTC