Quote:
Originally Posted by sherman
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.