Closed Bug 371786 Opened 17 years ago Closed 17 years ago

:first-letter pseudoclass on Hebrew-1255 encoded text cuts content

Categories

(Core :: Layout: Text and Fonts, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 198928

People

(Reporter: ailagg, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

When you use CSS for the first letter of an element, and the element contains numbers, all text after these numbers won't show.
Internet Explorer and Opera both handle it well.

Happens with hebrew-1255 encoding.

Reproducible: Always

Steps to Reproduce:
1. create a webpage with <p>אבגד 123 הוזח</p>  (these are Hebrew letters)
2. for that element, define something with the first-letter pseudoclass. for example, p:first-letter { font-weight: bold; }
3. open that page.
4. change encoding to hebrew (windows-1255)
Actual Results:  
אבגד
(even when I highlight it)
(notice that these were the FIRST four letters in that example)

Expected Results:  
אבגד 123 הוזח

In the attached example, notice the first paragraph cutting off. 
That's because of the CSS file: http://www.tau.ac.il/humanities/iranian/css/group1291.css
and the lines in that CSS file:
p:first-letter { 
		font-weight: bold;
		font-size: 1.2em; }
When I remove these lines, all is well.
Could you perhaps test with a nightly trunk build to see if you still see the problem?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
If you still see the problem with a nightly trunk build, could you then create a testcase, by using the "Add an attachment" link? Thanks!
Component: General → Layout: BiDi Hebrew & Arabic
Product: Firefox → Core
QA Contact: general → layout.bidi
Version: unspecified → 1.8 Branch
Duplicate of bug 198928 (fixed on trunk).
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: layout.bidi → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.