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)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
DUPLICATE
of bug 1220438
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | affected |
People
(Reporter: masayuki, Unassigned)
References
()
Details
Attachments
(1 file)
|
8.03 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•10 years ago
|
||
Here? (in nsTextFrame::DrawTextRunAndDecorations())
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsTextFrame.cpp?rev=e6e2759a1205&mark=6333-6339#6325
| Reporter | ||
Comment 2•10 years ago
|
||
Or, around GetTextDecorations(). The method doesn't check if the frame is in VertualRL or VerticalLR.
| Reporter | ||
Comment 4•10 years ago
|
||
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 5•10 years ago
|
||
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.
| Reporter | ||
Comment 6•10 years ago
|
||
(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.
| Reporter | ||
Comment 7•10 years ago
|
||
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.
| Reporter | ||
Comment 8•10 years ago
|
||
I don't have much time to work on this. Feel free to take this.
Assignee: masayuki → nobody
Status: ASSIGNED → NEW
Updated•9 years ago
|
Comment 9•9 years ago
|
||
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.
| Reporter | ||
Updated•8 years ago
|
Attachment #8624685 -
Flags: review?(jfkthame)
You need to log in
before you can comment on or make changes to this bug.
Description
•