Menu

Two logical properties and 110 physical ones, so I set dir=rtl on all 106 of our pages
📰

Two logical properties and 110 physical ones, so I set dir=rtl on all 106 of our pages

DEV Community: tailwindcss·Daniel Pertu·1 day ago
#UKGbwqyU
#devtotailwindcss#devto#dev#left#right
Long article (1642 words) — no AI summary yet.
Reading 0:00
15s threshold

Nakodo is an English-only product with 106 public pages. Nobody working on it has ever written margin-inline-start , there is no locale switcher, and <html lang="en"> has no dir attribute on it. So the question is not "does our RTL support work", it is "what would it cost if we ever needed it", and that is a question you can answer in an afternoon with one line in a console.

Open any page on nakodo.app and run this:

document . documentElement . dir = "rtl" ;

Enter fullscreen mode

Exit fullscreen mode

The page flips. Most of it flips correctly. The parts that do not are the point of this post, and they are a much shorter list than I expected.

What the stylesheet actually contains

The site ships 154,842 bytes of CSS in two files.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.