The SVG parser allows white spaces between function name and first opening brace, CSS doesn't.
SVG parser should change the behavior with the risk of losing a bit of its backward compatibility. WebKit had just one failing test after experimenting with this rule.
Adding this bug as a placeholder for future work and to attach tests
Created attachment 125401 [details] Patch Attaching patch that contains a test for this issue to be used in the future Not currently intended for review and/or commit
NOTE: - This test currently fails. Will pass when change is made such that the SVG parser does NOT allow a space after function name - May need to update location of test in WebKit directory structure
I took the testcase from attached patch and changed it into JSFiddle: Link - https://jsfiddle.net/6m4yc7n5/show All browsers (Safari 16.1, Safari Technology Preview 156, Chrome Canary 109 and Firefox Nightly 108) show "red" rect only and does not show any "green" rect. Do we need to do anything more or now all browsers agree with each other? Thanks!