Make dir property case insensitive, fixes #18400.
For lack of a better place, tests added to _BidiSupport/form/test_TimeTextBox.html.

(cherry picked from commit ed4fe7840eff7a266d635e03c887769909bf718d)