In svg-as-image with overflow:scroll on root node, we leave white space for scrollbars even though they aren't drawn

RESOLVED WORKSFORME

Status

()

Core
SVG
RESOLVED WORKSFORME
7 years ago
3 years ago

People

(Reporter: dholbert, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

7 years ago
See upcoming testcases, for an SVG image that has "overflow:scroll" on the root SVG node.

No scrollbars are painted, so we should end up with a perfect circle inside of a dotted border.  But in both cases (with <img> and CSS background), we actually get a blank strip on the bottom & right edges, apparently reserved for scrollbars.

We might consider just force-applying "overflow: hidden" root nodes of SVG-as-image helper-documents, since we're refusing to draw scrollbars anyway.
(Reporter)

Comment 1

7 years ago
Created attachment 484141 [details]
(helper SVG image)
(Reporter)

Comment 2

7 years ago
Created attachment 484143 [details]
testcase with <img> element
(Reporter)

Comment 3

7 years ago
Created attachment 484144 [details]
testcase with background-image
Seems to display correctly now.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.