For bidi titles, ellipsis appears on wrong side in title (both in tabs, and at top of page)

NEW
Unassigned

Status

()

Core
Layout: Text
15 years ago
5 years ago

People

(Reporter: Mark B, Unassigned)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031002 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031002 Firebird/0.7+

http://www.huji.ac.il/

Used tabbed browsing and look at this page (specifically, the tab this page is
in), also try narrowing the window until it is too narrow to fit the title.

Ellipsis should be on left side, but is on right side.

Reproducible: Always

Steps to Reproduce:
1. open http://www.huji.ac.il/
2. use tabbed browswing
3.

Actual Results:  
Ellipsis on right side of partial title in tab.

Expected Results:  
Ellipsis should be on left side.
I am unsure what the correct behaviour is in this case. My feeling is that the
direction in tab titles and the window caption should follow the direction of
the chrome, not of the individual titles.

In this specific case the title is not marked as right-to-left anyway.
Would the following work? Take the direction (inherited value of the dir
attribute) on the <title> element and propagate that to the tab, thus setting
the tab's "paragraph" direction to be RTL/LTR and thus have the punctuation on
the right (as opposed to wrong) side.

(For the title bar, the direction should depend on the direction of the " -
Mozilla" bit. If that's localised into Hebrew, then the title "paragraph"'s
direction would be RTL, e.g.. No?)

Comment 3

15 years ago
right now, the tab direction is inherited from the chrome direction - in most
cases. while reading this bug i noticed that sometimes the elipsis is on the
right, and sometimes on the left, with an RTL language pack. like that:

1.while an RTL language pack is active, open a page in a new window, with a lonk
title (like this bug).
2. open a new tab, and in that tab open another page with a long title.

you will notice that while the first page, now in a tab, has the elipsis at the
right side of the tab, the second page has the elipsis on the left side!

this is probably a matter for a different bug, but it depends on how this bug is
resolved.

to me it looks natural that since the tabs are part of the chrome, they will
have the chrome direction. i would also love to see the window title get the
chrome's direction, especially when displaying images. the title "(jpeg image
(30X40 pixels)" is completely messed up when translated, and the OS is LTR. i
think i discussed the image issue in some other bug, i can't remember which.

bare in mind that you can also set the page direction in the <body> tag, and
there probably are also pages, mostly amature, that don't set the page direction
at all, despite being hebrew. there are also RTL pages that have english only
titles, like the popular http://www.ynet.co.il (users from outside of israel
need to register)

in my translation of mozilla, i didn't translate product names, like Mozilla,
Navigator, Windows, ect. with the exception of Mail & Newsgroups.

Comment 4

15 years ago
Tested with 1.5 with the latest Hebrew language pack, on window 2003- the page
title has the ellipsis on one side, while the tabs have them on the other.

I am not sure where they should be, but they sure need to be consistent for the
same document...

a screen shot is comming...

Comment 5

15 years ago
Created attachment 135919 [details]
screen shot
I'm on Mac/Firefox, and this bug was filed for Windows/Mozilla, so what I say
below might be a bit off-topic, but I don't think there's a better place to put
it, so here I go:

I think the position of the ellipsis should respect the directionality of the
title, not of the chrome. Ellipsis to the right to Hebrew titles look really
bad. (The same applies to ellipsis to the left of English titles, when the
chrome is RTL, as in the tabs on Shosannah's screenshot).
So basically I support Hixie's suggestion in comment #2.
That said, I think we should rely on the page to correctly mark the direction of
the title - not try make guesses based on its content.

At least on Firefox/Mac, the titlebar does not present a special problem,
because there's currently no "Mozilla - " (or "Firefox -") part. 

What would it take to get this bug confirmed?

Comment 7

13 years ago
(In reply to Uri Bernstein, comment #6)
> What would it take to get this bug confirmed?

Help Simon make up his mind if this is the expected behavior or a bug ;-)

(In reply to Simon Montagu, comment #1)
> I am unsure what the correct behaviour is in this case. My feeling is that the
> direction in tab titles and the window caption should follow the direction of
> the chrome, not of the individual titles.

For the record, I too prefer the direction to be consistent with the chrome.

Prog.

Comment 8

13 years ago
I cannot reproduce this on mozilla 1.8a6 nor on Firefox 1.0.4. In the he-IL
builds, the tab icons are allways on the right side. i suggest closing this as
Resolved, Worksforme.

Comment 9

13 years ago
(In reply to comment #8)
> In the he-IL builds, the tab icons are allways on the right side. 

But what *is* the right side (or actually, the "correct" side) - is it the
chrome side or the title direction side? Or in other words, should it be the
right side in an he-IL build or the side where the title begins (right side for
RTL titles / left side for LTR titles)?

Hehe, 8 "sides" in one paragrph, I bet that's a first ;-)

Prog.

Comment 10

12 years ago
I submit that the ellipsis should match the directionality of the title text, as it an ellipsis is a character which is part of the text, not a chrome element; if we tabs were made shorter by having a

_________________
[           |\  |
[ blah blah | > |
[           |/  |
-----------------

appearance with an extand-the-tab button, then I agree its direction should match the chrome. But in the case of ellipsis, it is almost useless, psychologically, to have them if they're not in the right place w.r.t. reading order. It's like when you have periods or exclamation marks or question marks on the opposite side of the line.

Anyway, confirming for now.

BTW note that (IMO anyway) the distinction is not between the direction of the chrome and of the _page_, but rather the inferred direction of the _title_text_. And this is not the same thing.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All

Comment 11

12 years ago
let's say we wanted to put the ellipsis in the correct side. how would we determine what side is that? i don't think many authors use the 'dir' attribute on the title, and in many cases, the page direction is set only in the <body> tag, or even in individual text blocks.

guessing the direction from the content may also result in unpredictable results, because the title can contain mixed rtl/ltr text.

so even if we wanted to fix this bug, we first have to make sure we know if it's possible.

Updated

11 years ago
Assignee: mozilla → nobody
QA Contact: zach → layout.bidi

Updated

10 years ago
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: layout.bidi → layout.fonts-and-text

Comment 12

5 years ago
I just came across this bug while surfing the web, and was kind of confused at first because of the strange results. Since it's been untouched for five years I figured I'd let you know that it's still an issue (and confusing me). :-)
You need to log in before you can comment on or make changes to this bug.