AmoebeLabs / swiss-army-knife-card

The versatile custom Swiss Army Knife card for Home Assistant allows you to create your unique visualization using several graphical tools, styling options and animations.
236 stars 21 forks source link

Firefox doesn't display text at the requested alignment #117

Closed AmoebeLabs closed 2 years ago

AmoebeLabs commented 2 years ago

Bug report notice

Before you file a bug, make sure that you did not make a configuration mistake. The Swiss Army Knife in its current state does not yet have full configuration sanity checks!

So make sure your problem is not related to that!

Bug description

Firefox doesn't display text at the requested alignment. Text is almost always positioned to high!

To Reproduce

Steps to reproduce the behavior:

  1. Check any view from SAK

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

![](https://tweakers.net/i/abERXuvLVNPCpFRs3DKX3JgZk0s=/x800/filters:strip_exif()/f/image/SS0MYkd78UFcDTdvQX2maW3N.png?f=fotoalbum_large)

Desktop browser (please complete the following information):

Companion App on Smartphone/Tablet (please complete the following information):

Additional context Add any other context about the problem here.

(Optional): Suggested Solution

Firefox doesn't support the alignment-baseline property but does support dominant-baseline, which does about the same. So changing this seems to fix the problem, while seeing no changes in the other browsers.