uid / snapdown

Draw snapshot diagrams with plain text
MIT License
3 stars 0 forks source link

Firefox rendering #14

Closed rcmiller closed 4 years ago

rcmiller commented 4 years ago

Try this in Firefox: https://web.mit.edu/dwhatley/www/snapdown/web/production.html#xyz%20-%3E%20(String%20)

The String class name is at the wrong y coordinate. Looks ok in Chrome.

dwhatley19 commented 4 years ago

Fixed by setting the dominant-baseline attribute for all text elements. Text elements in Firefox are still slightly different from those in Chrome (a few pixels to the left), but I'm guessing this falls under a larger browser compatibility issue.