3 ms·
> Insert "they're exactly the same" meme. (Except for more curly braces: fun.) But the dir can also be auto (especially on inline/quoted content, forms, or mul
by patates 3y ago
> Insert "they're exactly the same" meme. (Except for more curly braces: fun.)
But the dir can also be auto (especially on inline/quoted content, forms, or multi-language sites), so the browser decides what the dir state is. The example in the article could perhaps be clearer, so I think it's normal for one to think they are the same.
Please see: https://www.w3.org/International/articles/inline-bidi-markup/ https://www.w3.org/International/articles/inline-bidi-markup...
Especially when you only have the container (perhaps you are designing a component library), reacting to state is much more secure, even though the browser support will haunt this feature for at least a year, or a couple of years to be more realistic.