New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 608413 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Blink renders nothing, if SVG viewBox is explicitly empty

Project Member Reported by dholb...@gmail.com, May 2 2016

Issue description

Version: Version 52.0.2716.0 dev (64-bit)
OS: Ubuntu 16.04

What steps will reproduce the problem?
(1) Load attached SVG file.

What is the expected output?
 Lime rect should be visible.

What do you see instead?
 Blank viewport -- nothing is rendered.

Notes:
The testcase has an explicitly empty (i.e. invalid) "viewBox" attribute on the <svg> element. If I remove that attribute, then I get the expected output.

Firefox 46, Edge 13, Safari 9 all produce my expected output here -- I believe Blink is alone in rendering the attached testcase as blank.
 
blink-empty-viewBox-attr.svg
129 bytes Download

Comment 1 by dholb...@gmail.com, May 2 2016

Summary: Blink renders nothing, if SVG viewBox is explicitly empty (was: Blink renders nothing, if viewBox is explicitly empty)
Here's a live version of the testcase:
 http://people.mozilla.org/~dholbert/tests/chrome/empty-viewBox-attr/test1.svg

Comment 2 by f...@opera.com, May 2 2016

Labels: OS-All
Status: Available (was: Untriaged)

Comment 3 by davve@opera.com, May 3 2016

SVGRect::setValueAsString() treats an empty string as a valid empty viewBox, causing us to abort rendering early on.

Not sure if this behavior is new with https://codereview.chromium.org/132233010 or if's older. If it's new that would explain why Safari 9 doesn't behave the same.

Comment 4 by f...@opera.com, May 3 2016

Yes, looks like that could be source/cause (SVGFitToViewBox::parseViewBox and descendants being the thing to look at.)
Owner: shanmug...@samsung.com
Status: Assigned (was: Available)
Status: Fixed (was: Assigned)

Sign in to add a comment