[csswg-drafts] [css-overflow-4] Require positive `<integer>` for `max-lines` specified in `*-line-clamp` (#8409)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow-4] Require positive `<integer>` for `max-lines` specified in `*-line-clamp` ==
The syntax of [`max-lines`](https://drafts.csswg.org/css-overflow-4/#propdef-max-lines) requires a positive `<integer>` whereas this restriction does not exist for `line-clamp` and `-webkit-line-clamp`.

```diff
  Name: line-clamp 
- Value: none | <integer> <'block-ellipsis'>?
+ Value: none | <integer [1,∞]> <'block-ellipsis'>?

  [...]

- <integer> 
+ <integer [1,∞]> <'block-ellipsis'>?
    Sets max-lines to the specified <integer>, continue to discard, 
    and the block-ellipsis property to second component of the value or to auto if omitted.
```

https://drafts.csswg.org/css-overflow-4/#line-clamp

```diff
  Name: -webkit-line-clamp 
- Value: none | <integer>
+ Value: none | <integer [1,∞]>
```

https://drafts.csswg.org/css-overflow-4/#webkit-line-clamp

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8409 using your GitHub account


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

Received on Tuesday, 7 February 2023 08:38:07 UTC