Closed Bug 561637 Opened 14 years ago Closed 14 years ago

reftests/bidi/visualmarquee.html and reftests/bidi/logicalmarquee fail on OSX

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smontagu, Unassigned)

References

Details

Attachments

(3 files)

Attached image Test image
This looks like an anti-aliasing issue
Attached image Reference image
Simplified testcase: load into adjacent tabs

Test
  data:text/html,<marquee scrollamount="0" behavior="alternate">X</marquee>

Reference
  data:text/html,<div style="text-align:right">X</div>

Then flip back and forth; the X can be seen to move by approximately (not exactly) one pixel, with the <marquee> version being slightly further from the right edge of the window.

This also occurs on Windows7 when DirectWrite is enabled (see bug 578127), but does not occur using the GDI font path.
See Also: → 578127
Attached patch FixSplinter Review
Forcing text-align: left fixes this for me locally.
(In reply to comment #3)
> Created attachment 457279 [details] [diff] [review]
> Fix
> 
> Forcing text-align: left fixes this for me locally.

Yes, this also appears to fix the failure on windows with dwrite.

However, it's not clear to me what these Hebrew marquee tests were specifically trying to address, and whether forcing left-alignment means we're no longer testing the same issues.
Thanks for the pointer, Jonathan. Similar issues seem to have come up in the past, e.g. in the reftests for bug 336736 and bug 404553. The work-arounds used there don't help here because the point of the test is to verify that reordering doesn't break on XBL bound anonymous content (cf. bug 558403 comment 17). I'll check in attachment 457279 [details] [diff] [review] if it passes on tryserver.
http://hg.mozilla.org/mozilla-central/rev/2c01b0ceb712
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: