View Single Post
Old 04-23-2022, 05:48 PM   #356
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by sherman View Post
So, just had another thought about the webkitTextRendering, it could potentially be used to perform CSS injection in the body tag.

I mean, the relevant bit is
Code:
text-rendering: %3;
Where %3 is a string.

So, what's stopping something like
Code:
webkitTextRendering=optimizeLegibility;font-family:sans-serif;text-align:center
from working?

Note, I haven't tested anything, but I don't see a reason why it wouldn't work.
Thinking more about this, I don't see a reason why you couldn't also set CSS for more tags and elements too, so long as the final result is valid CSS. Eg:

Code:
webkitTextRendering=optimizeLegibility;} p {text-align: center
Note, this idea relies on the fact that the text-rendering: %3; is at the end of the block of CSS.
sherman is offline   Reply With Quote