mapbox-gl-js version: 1.7 (didn't happen in 1.0)
browser: Chrome 72
Note that this is a regression. It didn't happen in 1.0, and happens in 1.7 (I noticed it when upgrading my RTL app version of mapbox from 1.0 to 1.7)
Go to any demo and wrap the map in html element with dir="rtl"
Map will be displayed
Map isn't displayed at all
Confirmed — thanks for the report! Regressed by https://github.com/mapbox/mapbox-gl-js/pull/8227 — making a fix now.
@mourner Thank you so much for your prompt response and fix! Looking forward to the next release!
Also, if I may ask, out of curiosity -- what steps did you take to locate the exact change that caused the issue?
@yarinr thank you! I had a hunch that this is a CSS-related bug, so I set up a simple test case with dir=rtl and started testing the same JS build against different versions of CSS, and found that v1.1.0 already has the bug. Next, I skimmed through the v1.1.0 changelog for any CSS-related pull requests, and immediately found the text-align: left one which seemed suspicious. Then I confirmed that this line triggers the bug.