-
Notifications
You must be signed in to change notification settings - Fork 719
[css-overflow] ensure interactions between block-overflow and text-overflow are defined #2882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is mostly defined. Side note 1: your example needs Side note 2: your example needs a second line of text in the div, otherwise Assuming we have more than 1 line's worth of content, and non-visible overflow:
The only problem is if the ellipsis string itself is longer than the line. The spec says:
I think this idea of replacing content in earlier lines, while nice, would bring it a lot of complexity, and that undefined behavior isn't helpful here. I'd suggest switching to
That makes the whole thing much simpler and fully defined, and sufficient to handle the primary use case of this feature. And if we later want to introduce the idea of replacing content in earlier lines, we can add a switch. We may not even need a new property for that, and might be able to retroactively pretend that the UA stylesheet contains cc: @fantasai What do you think? |
The CSS Working Group just discussed
The full IRC log of that discussion |
https://drafts.csswg.org/css-overflow-3/#block-ellipsis
I wonder if there are any undefined interactions between text-overflow and block-overflow. For example is it clear what happens when you have:
It may be, but I think it is worth explicitly mentioning in the spec.
The text was updated successfully, but these errors were encountered: