CSS "text-overflow: ellipsis;" finally landed in Gecko
11–20 of 28 posts
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#12I've been missing this feature in HTML for so long when making tables/overviews. Great to hear it's finally implemented.
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#13"text-overflow: ellipsis" is a great start, but it's really too bad it only applies to individual lines of text (via "white-space: nowrap"). it would be very useful if we had a property to truncate text when it reaches the end of a container with a fixed height. so if the container is 3.5 lines tall, 3 lines should be shown with an ellipsis at the last character. bonus points if we can specify a separator, so that th…
I needed this desperately for a project I worked on last fall and ended up writing tons of JS which felt oh so wrong. Newspapers and magazines would LOVE to have that. Especially on mobile Safari. Especially on tablets.
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#14http://mattsnider.com/css/css-string-truncation-with-ellipsi...
Yay for not needing this down the road.
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#15Unfortunately it will have to wait for FF7 https://bugzilla.mozilla.org/show_bug.cgi?id=312156& ;
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#16"text-overflow: ellipsis" is a great start, but it's really too bad it only applies to individual lines of text (via "white-space: nowrap"). it would be very useful if we had a property to truncate text when it reaches the end of a container with a fixed height. so if the container is 3.5 lines tall, 3 lines should be shown with an ellipsis at the last character. bonus points if we can specify a separator, so that th…
I agree, it would be a lot more useful. Safari has an unsupported property (-webkit-line-clamp) that goes a little further but still limited. The fact that none of the browsers provides a way (no even vendor-prefixed) to do it makes me think that there are big technical hurdles. I needed this desperately for a project I worked on last fall and ended up writing tons of JS which felt oh so wrong. Newspapers and magazin…
When you get into fancier concepts like truncating a set of lines, or only at certain word/phrase/sentence boundaries, you're into desktop publishing typesetting. To do that properly you're not just truncating when the container overflows, you're also adjusting the spacing between words and letters to make every line look consistent and to get as much of the text to fit neatly as you can. There aren't many pieces of software that professionals trust to do that well, and the ones that exist are expensive. We're not likely to see those algorithms getting into everyone's browser.
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#17Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#18There is a way to get this working before FF5, it just involves a weird hack with an XML file. http://mattsnider.com/css/css-string-truncation-with-ellipsi... Yay for not needing this down the road.
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#19There is a way to get this working before FF5, it just involves a weird hack with an XML file. http://mattsnider.com/css/css-string-truncation-with-ellipsi... Yay for not needing this down the road.
That was one of the craziest hacks I've ever used on a production site. Glad this is finally implemented..
Re: CSS "text-overflow: ellipsis;" finally landed in Gecko
#20"text-overflow: ellipsis" is a great start, but it's really too bad it only applies to individual lines of text (via "white-space: nowrap"). it would be very useful if we had a property to truncate text when it reaches the end of a container with a fixed height. so if the container is 3.5 lines tall, 3 lines should be shown with an ellipsis at the last character. bonus points if we can specify a separator, so that th…
I agree, it would be a lot more useful. Safari has an unsupported property (-webkit-line-clamp) that goes a little further but still limited. The fact that none of the browsers provides a way (no even vendor-prefixed) to do it makes me think that there are big technical hurdles. I needed this desperately for a project I worked on last fall and ended up writing tons of JS which felt oh so wrong. Newspapers and magazin…