It’s because we automatically remove <style> in SVGs for security reasons. Try inline styles instead.
Now that I think about it, it’s kinda pointless to block <style> tags but not inline styles…
Maybe we should allow them as this has generated more support question than actual security issues?