Closed Bug 398337 Opened 18 years ago Closed 18 years ago

tweak bidi reftests

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

Attachments

(1 file)

[oops, accidentally hit enter in the assignee textfield so filed blank] A bunch of the bidi reftests don't pass for me: * 000 fails because the text wraps to multiple lines. * 006 fails because the U+05D9 character in my 36pt Hebrew font is wider than 9pt, so it gets cut off in the overflow:hidden case I have a patch that: * converts all the measurements in the bidi reftests from pt to px, since the window the tests run in is sized in px * rewrites the 006 test so that it tightly wraps the character with inline-blocks from the following line, spaced around the same character without a diacritic (This means it assumes the diacritic is narrower than the character, which is hopefully ok.)
Attached patch patchSplinter Review
Note that this changes the line endings on 006* (which were somehow checked in with Windows line endings), but since the file is changed drastically enough already I'm not sure of the value of a whitespace-ignoring diff.
Attachment #283277 - Flags: review?(smontagu)
Blocks: 386546
Comment on attachment 283277 [details] [diff] [review] patch > This means it assumes the diacritic is narrower than the > character, which is hopefully ok.) That assumption doesn't hold on my default sans-serif Hebrew font. I suggest changing the base character from U+05D9 to U+05D6, which should be no less wide than the diacritic, but not so wide that there's a chance that the diacritic could be misplaced without overhanging. r=me with that change.
Attachment #283277 - Flags: review?(smontagu) → review+
Checked in with that change.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: