Bug 967857 - Allow custom CSS rules for Arabic and Bangla Probhat keyboard layouts to prevent overflowing

For v1.3

Backporting bug 897362 and adding custom rules for Bangla Probhat.