PSA: Add dir=“auto” to your inputs and textareas(dev.to)
dev.to
PSA: Add dir=“auto” to your inputs and textareas
https://dev.to/bitario/psa-add-dirauto-to-your-inputs-and-textareas-blc
2 comments
What browsers don't support it?
https://dev.to/bitario/psa-add-dirauto-to-your-inputs-and-textareas-blc
> The heuristic used by this state is very crude (it just looks at the first character with a strong directionality, in a manner analogous to the Paragraph Level determination in the bidirectional algorithm). Authors are urged to only use this value as a last resort when the direction of the text is truly unknown and no better server-side heuristic can be applied.
which seems to be their justification for not having this be the default behaviour.