mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 112 forks source link

Input.text and Element.el <| text have slightly different spacing under very specific conditions #221

Open jhbrown94 opened 4 years ago

jhbrown94 commented 4 years ago

When I format an Input.text exactly the same as an Element.el containing an Element.text, the bottom spacing can be different under very specific conditions. You can see the example here, BUT IT ONLY WORKS at 80% magnification -- at 100% magnification the effect goes away. (On Chrome, on OS X). So make sure to zoom out to 80% to see the effect.

https://ellie-app.com/8W4tpSCn4Q2a1

Expected behavior Regardless of magnification, Input.text should look the same as an Element.el containing an Element.text when spacing and padding and borders are all set the same.

Versions

alexkorban commented 4 years ago

I can reproduce in Safari when zoomed out two steps (there's a one pixel difference). Perhaps a rounding error? #has-ellie