From: Alexander Ebert Date: Thu, 20 Apr 2017 12:16:46 +0000 (+0200) Subject: Firefox does not support alignment-baseline on SVG text X-Git-Tag: 3.1.0_Alpha_1~498 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a3b774fc862d2decce4bbdc66b423a39a667e1f;p=GitHub%2FWoltLab%2FWCF.git Firefox does not support alignment-baseline on SVG text https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/alignment-baseline shows examples using a element, but they're broken in Firefox (oh the irony!). The `dominant-baseline`-attribute has the same outcome and can be used instead. Thanks @Morik --- diff --git a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php index 9acd6c30e4..1fa5e81529 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php @@ -54,7 +54,7 @@ class DefaultAvatar implements IUserAvatar { // the is basically a shorter version of a $svg = <<{$text} +{$text} SVG; $this->src = "data:image/svg+xml;base64," . base64_encode($svg);