Re: [csswg-drafts] [css-values-5] [css-overflow-4]How does `line-clamp` transition from `<integer>` to `auto` or `none`? (#10502)

There is also a scenario where an internal element contains `margin/padding`, where lh can't set the exact number of rows needed.

![image](https://github.com/user-attachments/assets/0c1dc062-d57c-4809-9efc-f473c2b561ff)

```html
data:text/html;charset=UTF-8,<!DOCTYPE html>
<style>
.item {
  border: 1px solid green;
  width: 300px;
  height: 4lh;
  line-clamp: auto;
  font-size: 16px;
  line-height: 1.5;
}
p {
  margin: 20px 0;
}
</style>
<div class="item">
 <p>
  It allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content.
 </p>
</div>
```

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


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

Received on Tuesday, 22 October 2024 14:56:56 UTC