W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

Re: [csswg-drafts] [css-ui] text-overflow: ellipsis when a word of different direction was truncated

From: Najib Tounsi via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jan 2018 17:25:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-356034131-1515432328-sysbot+gh@w3.org>
Which part of the word, ABC or DEF, is truncated is relative and depends on base direction (and the reading direction).

With Firefox:

In RTL mode, Arabic "FEDCBA" will result in "...CBA".  The right reading for Arabic readers
The Latin "abcdef" will result in "...def".
Scrolling goes from right to left showing the rest of the text.

In LTR mode it is just the opposite behavior

Arabic "FEDCBA" will result in "FED ...". 
The Latin "abcdef" will result in "abc...". The right reading for Latin readers
Scrolling goes from left to right showing the rest of the text.

So, ellipsis is coherent with scrolling.

I expect this is the right thing to do.

Give it [a try here](https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-overflow) with this text  "`abc def ابجد هوز`" and the style `text-overflow: ellipsis;`  and  `overflow: scroll;`  to see how the text is cut and scrolled.

GitHub Notification of comment by ntounsi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2125#issuecomment-356034131 using your GitHub account
Received on Monday, 8 January 2018 17:25:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:22 UTC