kkuchta / css-only-chat

A truly monstrous async web chat using no JS whatsoever on the frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use fonts instead of background images

Paul-Browne opened this issue · comments

So instead of requesting a bg image, you would use @fontface

I think you can also use font subsetting to request fonts for certain characters

Yes, it is possible, but this approach alone could monitor only new unique characters, subsequent characters does not produce requests. I proposed perhaps it could be worked around if subsequent CSS updates defined new font stack for input consisting of one font covering known input value in single ligature and as a fallback classical "keylogging" font.

@font-face { name: written; url(real font with single ligature of last known value)}
@font-face { name: logger; url(?key logging route); unicode-range: ... } /* etc etc */
input { font-family: written, logger; }

(all fonts names unique per response)

Obviously if this simple approach works, it could work just for typing, not deleting, pasting, moving cursor and typing in the middle etc.


Related #2 (comment), #11

Please assign this issue to me