eyalroz / bidimailui

BiDi Mail UI: Thunderbird extension for improved right-to-left language support
https://addons.thunderbird.net/en-US/thunderbird/addon/bidi-mail-ui/
Other
18 stars 2 forks source link

Thunderbird is complaining about direction being set on the body rather than the document #127

Closed eyalroz closed 1 month ago

eyalroz commented 1 month ago

When setting the direction of the document body element (directly or indirectly via stylesheet), we get this warning from Thunderbird:

When rendering the element, the used values of CSS properties “writing-mode”, “direction”, and “text-orientation” on the element are taken from the computed values of the element, not from the element’s own values. Consider setting these properties on the :root CSS pseudo-class. For more information see “The Principal Writing Mode” in https://www.w3.org/TR/css-writing-modes-3/#principal-flow

We can set things on :root, but we can set them on the document node (i.e. the HTML node). That will take a bit of messing with the code, where the body passed to all sort of functions.