[ticket/12809] Fix select button and dropdown list items in RTL.

Depends on e4941ee from #2712.

https://tracker.phpbb.com/browse/PHPBB3-12809