[ticket/12598] Bidi border-color fixes

PHPBB3-12598