tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a218aa6c9b92c60aee3c7e82db72c7949c19be73
parent d5ae708c037d3cc3d98e439806c9fefc4266954f
Author: Julien Wajsberg <felash@gmail.com>
Date:   Thu,  8 Jan 2026 10:17:48 +0000

Bug 2005559 - Set the directionality for input types tel, url, email, number to "ltr" even in rtl documents r=desktop-theme-reviewers,jules,emilio

These input types should always be read left to right, even in a RTL
document.

Differential Revision: https://phabricator.services.mozilla.com/D276017

Diffstat:
Mtoolkit/content/widgets/moz-input-common.css | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/toolkit/content/widgets/moz-input-common.css b/toolkit/content/widgets/moz-input-common.css @@ -148,4 +148,10 @@ * element has a margin between it and the parent. */ margin-block-start: var(--space-large); } + + /* Maintain direction in some input types, even when the page is rtl */ + input:is([type="tel"], [type="url"], [type="email"], [type="number"]):not(:placeholder-shown) { + direction: ltr; + text-align: match-parent; + } }