Text cursor is not centered vertically:

That's pretty weird, the text is vertically centered. Not sure if that counts as a bug...
After some research on the web it appears like recurrent issue for Safari, mobile Safari and even Chrome.
This is fixed by setting line-height: normal in input field css:
input.pt-input.pt-fill {
line-height: normal;
}
may also be fixed by line-height: 1; or line-height: 100%; however line-height: normal; is considered the best solution.
Let me know if you would accept PR of this.
I've noticed this issue with how Safari draws cursors--it's deeply inconsistent with other browsers.
We've been using line-height to center the text vertically, but don't remember for which browser or specific use cases.
I'm afraid a change to line-height may break vertical centering in certain contexts, but certainly happy to take a look at this after the holiday or review any PR submitted on the matter 馃憤
@llorca - What if we just use top/bottom padding within the input? Then we can keep line-height normal in all browsers and still have the power to massage the vertical offsets of the text.
We could try, we didn't use padding to begin with because of the inconsistencies between browsers (we ended up with an input of 31px in some cases)
just studied github's repo search box and here's what i learned:
.centered-input-text {
font-size: 13px;
line-height: 20px;
}
the root cause is that our 14px font-size produces 11px-tall letters, whereas 16px font-size (large) produces 12px-tall letters. the odd height means it can't ever be centered on the whole pixel which causes the off-by-a-few issue in the screenshot above.
so a font-size that produces 10px-high letters of course solves the centering problem.
a reduced line-height solves the safari cursor rendering issue.
(see #371 for original discussion)
Most helpful comment
After some research on the web it appears like recurrent issue for Safari, mobile Safari and even Chrome.
This is fixed by setting
line-height: normalin input field css:may also be fixed by
line-height: 1;orline-height: 100%;howeverline-height: normal;is considered the best solution.Let me know if you would accept PR of this.