Bug 192507 - Leading whitespaces in the "values" attribute of the feColorMatrix breaks its parsing
Summary: Leading whitespaces in the "values" attribute of the feColorMatrix breaks its...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-07 11:26 PST by Said Abou-Hallawa
Modified: 2018-12-07 15:12 PST (History)
5 users (show)

See Also:


Attachments
test case (558 bytes, image/svg+xml)
2018-12-07 11:26 PST, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2018-12-07 11:26:19 PST
Created attachment 356826 [details]
test case

Open the attached test case. The circle with the feColorMatrix is not rendered. The "values" attribute of the feColorMatrix is written like that:

            values=" 0 0 0 0 0
                    1 1 1 1 0
                    0 0 0 0 0
                    0 0 0 1 0" />

The leading whitespaces breaks the filter parsing and causes nothing to be rendered.

Look at the SVGNumberListValues::parse() and you will find this comment:

// The spec (section 4.1) strangely doesn't allow leading whitespace. We might choose to violate that intentionally.

This test case works as expected in Chrome and FireFox.