Closed Bug 1113684 Opened 10 years ago Closed 9 years ago

display of <img> alt-text should respect writing modes

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

See testcase. When the broken-image icon is *not* shown, the alt text respects the writing-mode as expected; but when we're displaying the broken-image icon, the alt text no longer renders correctly for vertical modes.

(Also, in the vertical-rl case, we should move the broken-image icon to the top right of the image frame, as we do for bidi-rtl.)
Display of the alt text alongside a broken-image icon depends on nsLayoutUtils::DrawString, so the first patch in bug 1111944 is the foundation for this. With that in place, we can then fix up the formatting/positioning of the string in nsImageFrame::DisplayAltText.
Depends on: 1111944
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment on attachment 8539306 [details] [diff] [review]
Handle vertical writing modes when displaying alt-text alongside a broken-image icon

Review of attachment 8539306 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM
Attachment #8539306 - Flags: review?(smontagu) → review+
This is needed because the patch (intentionally) moves the broken-image icon to the top-right of the frame in vertical-rl mode, so the reference for this testcase needs to be updated accordingly.
Attachment #8541852 - Flags: review?(smontagu)
Attachment #8541852 - Flags: review?(smontagu) → review+
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: