In webkit-based browsers (Google Chrome & Safari), when I try to show placeholder text in an input element, if the placeholder is too long, I want to use text-overflow: ellipsis
css to show "..." to cut the text.
This works at first, but when I click the input element before I type anything, the placeholder is still showing but not the ellipsis.
Example: https://jsfiddle.net/cqsguwpm/1/
Note that this does not happen in Firefox, so I assumed this issue happens on webkit-based browsers only.
As shown in the example, I've tried adding text-overflow: ellipsis
rule to .input:focus::placeholder { }
and .input:active::placeholder { }
too, because I suspected the focus and active styles had overwritten the ellipsis rule, but apparently it still doesn't work
I need to know whether this one is possible to do or not in webkit-based browser, since I'm guessing this might just be one of the shortcomings of webkit.