Closed Bug 1175846 Opened 10 years ago Closed 9 years ago

lines of text-decoration across some elements are broken only in vertical-rl;

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1220438
Tracking Status
firefox41 --- affected

People

(Reporter: masayuki, Unassigned)

References

()

Details

Attachments

(1 file)

Only in vertical-rl, lines of text-decoration isn't painted as connected lines. See following testcase: http://jsfiddle.net/d_toybox/wbd7yr56/2/ In this testcase, I use lang attribute for changing the font-family. It seems that the font difference causes this bug.
Or, around GetTextDecorations(). The method doesn't check if the frame is in VertualRL or VerticalLR.
Taking.
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
I'm not sure why this patch fixes this bug. However, I guess you know since you wrote this.
Attachment #8624685 - Flags: review?(jfkthame)
Comment on attachment 8624685 [details] [diff] [review] Patch Review of attachment 8624685 [details] [diff] [review]: ----------------------------------------------------------------- TBH, I don't recall offhand exactly what's going on here, but I'm concerned that removing this code will adversely affect the visual overflow area computation for text frames. I notice that in the reftest here, I see clipping of the "j" descender when the patch is applied (on OS X; may be platform-dependent according to fonts used). Without the patch, this clipping doesn't happen. So please take a closer look, especially at the effect on overflow/clipping area; also check the effect when text-orientation:sideways-right is applied, as I think that will make it clearer if ascent/descent metrics are being incorrectly flipped. Leaving r? pending for now, as I think we need to look at this more deeply.
(In reply to Jonathan Kew (:jfkthame) from comment #5) > TBH, I don't recall offhand exactly what's going on here, but I'm concerned > that removing this code will adversely affect the visual overflow area > computation for text frames. I notice that in the reftest here, I see > clipping of the "j" descender when the patch is applied (on OS X; may be > platform-dependent according to fonts used). Without the patch, this > clipping doesn't happen. Hmm, without the patch, sometimes right-side line is clipped. So, I think that removing the code is not incorrect. But we see a hidden bug. > So please take a closer look, especially at the effect on overflow/clipping > area; also check the effect when text-orientation:sideways-right is applied, > as I think that will make it clearer if ascent/descent metrics are being > incorrectly flipped. Okay, I will check that.
Hmm, applying text-orientation:sideways-right breaks underline/overline positions. http://jsfiddle.net/d_toybox/wbd7yr56/5/ And also I don't see the clipping issue on Windows. I guess that it's really different bug in computing overflow area.
I don't have much time to work on this. Feel free to take this.
Assignee: masayuki → nobody
Status: ASSIGNED → NEW
OS: Windows 8.1 → All
Hardware: x86 → All
See Also: → 1220438
This bug seems to have been fixed by bug 1220438? Looks like the same issue so dupe for now. If you can still reproduce it, please reopen it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
See Also: 1220438
Attachment #8624685 - Flags: review?(jfkthame)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: