Closed
Bug 1113684
Opened 11 years ago
Closed 11 years ago
display of <img> alt-text should respect writing modes
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
|
2.16 KB,
text/html
|
Details | |
|
8.73 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
|
1.16 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
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.)
| Assignee | ||
Comment 1•11 years ago
|
||
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 | ||
Comment 2•11 years ago
|
||
Attachment #8539306 -
Flags: review?(smontagu)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment 3•11 years ago
|
||
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+
| Assignee | ||
Comment 4•11 years ago
|
||
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)
Updated•11 years ago
|
Attachment #8541852 -
Flags: review?(smontagu) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1fc59f36a868
https://hg.mozilla.org/integration/mozilla-inbound/rev/5179ff7d7573
Target Milestone: --- → mozilla37
https://hg.mozilla.org/mozilla-central/rev/1fc59f36a868
https://hg.mozilla.org/mozilla-central/rev/5179ff7d7573
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•