Skip to content
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

[css-overflow-4] Custom ellipsis character #5071

Closed
chrishtr opened this issue May 14, 2020 · 7 comments
Closed

[css-overflow-4] Custom ellipsis character #5071

chrishtr opened this issue May 14, 2020 · 7 comments

Comments

@chrishtr
Copy link
Contributor

css-ui-3 specifies that UAs use the ellipsis character for ellipsis when text-overflow: ellipsis is specified. It seems there is demand for allowing a custom character, to handle for example scripts that are not western.

Has this idea been proposed before? I can't find an open issue for it.

@astearns
Copy link
Member

astearns commented May 15, 2020

There used to be a <string> value that I think was meant to be an alternate character, and according to the www-style archives Firefox had an implementation.

https://lists.w3.org/Archives/Public/www-style/2011Jun/0329.html

I also found a mention that some languages use a 6-dot ellipsis?

https://lists.w3.org/Archives/Public/www-style/2008Aug/0008.html

@astearns astearns changed the title [css-ui-4] Custom ellipsis character [css-overflow-4] Custom ellipsis character May 15, 2020
@chrishtr
Copy link
Contributor Author

Is block-ellipsis also relevant? https://drafts.csswg.org/css-overflow-3/#propdef-block-ellipsis

@Crissov
Copy link
Contributor

Crissov commented May 15, 2020

Some people would probably also prefer an arrow, chevron or triangle pointing in the block progression or line direction. Not to mention texts like “TBC”, “continues”, “[trunc.]”, “More” or “Read more”.

@SebastianZ
Copy link
Contributor

... and according to the www-style archives Firefox had an implementation.

Not only had but still has, see https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow#Examples.

Actually, I am surprised it isn't in the specification anymore. Previously it was defined here:

https://www.w3.org/TR/2003/CR-css3-text-20030514/#text-overflow-ellipsis

Sebastian

@MatsPalmgren
Copy link

It's specced in css-overflow-4. Firefox supports [ clip | ellipsis | <string> ]{1,2} and we shipped that years ago.

@SebastianZ
Copy link
Contributor

Oh, right! How could I miss that? So I guess this issue can be closed, right?

Sebastian

@chrishtr
Copy link
Contributor Author

Yes, I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants