[Webkit-unassigned] [Bug 25135] text-overflow:ellipsis doesn't correctly handle cases where a text run and inline box have different directionality

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 15 12:52:36 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25135





------- Comment #2 from playmobil at google.com  2009-04-15 12:52 PDT -------
Here's a slightly clearer description of the problem:

.test {
    width: 180px;
    height: 20px;
    border: 1px solid black;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 0 20px 0;
}

.ellipsis {
    text-overflow:ellipsis;
}

<div class="test ellipsis" dir=RTL>
Hello
</div>

The directionality of the div dictates the side that the ellipsis will be drawn
on, in this case the left side of the text.

This case differs from what's currently handled in the code since the
difference in directionality means we need to truncate from the START of the
text run.

Therefore the correct truncation should look something like:
...lo

This is also true for the opposite case (ltr aligned div containg an RTL text
run).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list