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.34k stars 110 forks source link

clipX adds a white box to the end of a line on Chrome #323

Open jhbrown-veradept opened 2 years ago

jhbrown-veradept commented 2 years ago

Expected behavior When I use the clipX attribute, I expect to see the text, or possibly a truncated version of the text, against the regular background color.

Actual behavior In Chrome, if the background isn't white, I get a weird white box at the end of the line, see https://ellie-app.com/f5TMtfPFnMXa1 image

This does NOT happen in Safari or Firefox, just Chrome.

If I add 1 pixel of padding, it goes away, see https://ellie-app.com/f5TQJjX39p3a1 image

Versions