SVG: Allow , as separator in viewBox attribute value
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Fri, 10 Aug 2018 22:12:36 +0000 (00:12 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Fri, 10 Aug 2018 22:16:43 +0000 (00:16 +0200)
commit25c293cadc3f8753a08a597407daefd5f8079f46
treef37e6a9282fc1a4e95e90e3e3bc57687387637f1
parentd2b6802d535cc1dcb8b2e4cc2f40b4f4ffb89e18
SVG: Allow , as separator in viewBox attribute value

The viewBox attribute of the <svg> element allows both whitespace and
commas to be used as field separators.
https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute

Bug: T194192
Change-Id: Iae9be3e4fad3a8ffa411d7a76eee2f20cc39b718
includes/media/SVGMetadataExtractor.php
tests/phpunit/data/media/comma_separated_viewbox.svg [new file with mode: 0644]
tests/phpunit/includes/media/SVGMetadataExtractorTest.php