I think the only way to fix this is by applying the styles to the wrapper, but then you'd need to pass the focus state of the textarea to the wrapper, instead of using :focus (which wouldn't work in plain PHP mode, so it would need to degrade gracefully).
Solution
Fixed with exception of browsers (IE/Edge) which don't support this standard property (yet).
Before | After |
---|---|