griddle icon indicating copy to clipboard operation
griddle copied to clipboard

Safari 7

Open chriscoyier opened this issue 11 years ago • 5 comments

I think there was some kind of change in Safari 7 that changed rounding (again). Ultimately it breaks griddle.

screen shot 2014-02-09 at 5 52 24 pm

Changing the letter-spacing from -0.31em to -0.32em fixes it, but then it's a bit ragged-right. Might wanna try the font-size: 0; thing or some other approach.

chriscoyier avatar Feb 10 '14 01:02 chriscoyier

Hi Chris, Thank you to point out this issue. It seems this hack has many inconveniences (especially when there are a new broswer release) and is not a perennial solution in any way (it's my opinion since the beginning). IMHO, that is why Nicolas chose to use another solution in his suitcss/grid project. But each 'hack' to avoid this HTML problem have theirs drawbacks (e.g.: #24) while there are numerous other solutions without CSS (e.g.: Remove the spaces) For now, I use this CSS property only with a compressed code (otherwise I don't).

7studio avatar Feb 11 '14 10:02 7studio

Yeah I don't use Sass anymore. If someone wants to put together a PR to implement the font-size hack, like in suitcss/grid, then I'll accept it.

necolas avatar Feb 11 '14 18:02 necolas

@necolas I am intrigued, why did you decide to move away from sass and just use plain css? Did you write about it?

ferdinandsalis avatar Feb 11 '14 18:02 ferdinandsalis

Haven't written about it. Might do at some point.

necolas avatar Feb 11 '14 19:02 necolas

Another possible solution may be to use the ch unit: http://codepen.io/joeyhoer/details/zxPaXZ/. Better browser support, but you still have to redefine the font-family, which may be undesirable.

joeyhoer avatar Feb 10 '15 19:02 joeyhoer