Closed Bug 1510267 Opened 6 years ago Closed 3 years ago

Inline SVG text is cut off at bottom

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox65 --- wontfix

People

(Reporter: overholt, Unassigned)

References

()

Details

Attachments

(2 files)

Attached image clippedText.PNG
(I initially filed this as https://github.com/webcompat/web-bugs/issues/21764)

"of Canada" text is cut off at the bottom with WebRender but not without. It seems to be dependent upon how large the window is (it happens when I've got my browser maximized but not when it's split half the screen vertically.

(I tried the inline SVG on its own but it doesn't reproduce (like, it looks the same in Chrome and Firefox): https://codepen.io/anon/pen/yQjJpP)
See Also: → 1508203
Priority: -- → P3
Attached file Testcase
Reduced test case. I saw the problem when I changed zoom level with latest nightly on linux.
On linux, I saw a bit of similar problem with BasicCompositor.
I see the bottom clipped on the reduced test case in Fennec (WR off) when zoomed all the way out. So most likely this is not actually WR-specific but some sort of snapping issue.
This isn't bad enough to block shipping.
Priority: P3 → P4

This wasn't fixed by andrew's snapping fix.

It appears to be caused by the latest snapping issues I've been investigating in bug 1453935 and bug 1523410.

Assignee: nobody → aosmond

(In reply to Andrew Osmond [:aosmond] from comment #6)

It appears to be caused by the latest snapping issues I've been investigating in bug 1453935 and bug 1523410.

I think I improved it, but after further testing, there is still one zoom level (60% with 200% scaling on Linux, or 120% with 100% scaling) where I still see the clipping.

Turns out, it was my patch that changed ToRoundedLayoutRect to work like ToLayoutRect that solved the text clipping. We need to figure out what is going wrong for the failing test cases, but this is likely the path forward for the correct solution.

Blocks: wr-67
No longer blocks: stage-wr-trains
Priority: P4 → P3
Blocks: wr-68
No longer blocks: wr-67
Blocks: wr-70
No longer blocks: wr-68
See Also: → 1563783

This is not WebRender specific. This renders the same on basic on Linux, and with advanced layers / d2d on Windows. If my snapping changes had an impact (with an updated patch, it doesn't appear to any longer), then I suspect it was more of a fluke than a proper resolution.

Assignee: aosmond → nobody
No longer blocks: wr-70
Component: Graphics: WebRender → Graphics

I should also note that this can be reproduce on really old builds, e.g. 2015 so it has been around for a long time.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: