SVG file with no height/width attribute do not display scrollbars.

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
10 years ago
10 years ago

People

(Reporter: Freddie Page, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9b4) Gecko/2008030318 Firefox/3.0b4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9b4) Gecko/2008030318 Firefox/3.0b4

SVG files which do not have height and or width attributes on the root svg element will not display scrollbars when the content exceeds the window.
This is also apparent when using the zoom feature (without zoom text only) and zooming in.
If no width or height attributes are supplied (or they are set to 100%) then determining whether to display scrollbars should be based on the width and height of the content.

Reproducible: Always
(Reporter)

Comment 1

10 years ago
Created attachment 312747 [details]
Test case.

This SVG draws a rectangle that will likely exceed the bounds of the screen. No scrollbars will be drawn.
(Reporter)

Comment 2

10 years ago
To clarify; The bug presents itself when viewing an SVG file by itself not when embedded in a document
This is invalid.

http://www.w3.org/TR/SVG/masking.html#OverflowAndClipProperties

The default value for overflow is hidden on the outer svg element so you don't get scrollbars.

You might try overflow="scroll", if that doesn't work you are experiencing bug 378923.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Component: General → SVG
Product: Firefox → Core
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.