-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MELS avatars have wrong vertical offset in Firefox #5594
Comments
dup of #4096 (it happened in pre-57 too) |
Oh, wait, this is a different issue. Sorry for the noise. |
Fixed! (As of ff 64 something, if we didn't fix this in Riot itself) |
But I'm bumping from P1 'cause I don't think it actually looks noticably broken. |
I believe this is a styling bug in Firefox. I am working on a reduced test case. |
I believe this is partly a Firefox style caching / race condition bug, which I have reported upstream. It is interesting, however, that we now also have reports of similar issues in Chrome as well (#9088). I will continue investigating style tweaks in Riot to avoid these strange browser behaviours. |
In at least Firefox, the case of relative positioned inline elements (such as mx_BaseAvatar) with absolute positioned children (such as mx_BaseAvatar_initial) is a dark corner full of spider webs. It will give different results during full reflow of the page vs. incremental reflow of small portions. While that's surely a browser bug, we can avoid it by using `inline-block` instead of the default `inline`. Fixes element-hq/element-web#5594 Might help with element-hq/element-web#9088 See also https://bugzilla.mozilla.org/show_bug.cgi?id=1535053 and https://bugzilla.mozilla.org/show_bug.cgi?id=255139 for more details on browser behavior in this case.
Bizarrely and depressingly, toggling the
line-height
style attribute on & off on the initial fixes it :(The text was updated successfully, but these errors were encountered: