tor-browser

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

commit d778f470cc27db023c4429fa1de1d3565c8cda98
parent 3241223d368108168b7c15712cab930e48c56a19
Author: Jonathan Kew <jkew@mozilla.com>
Date:   Thu, 16 Oct 2025 08:50:14 +0000

Bug 1980101 - Apply text-decoration-trim:auto to underline and strikethrough elements in CJK languages. r=layout-jp-market-reviewers,AlaskanEmily

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

Diffstat:
Mbrowser/base/content/test/static/browser_parsable_css.js | 5+++++
Mlayout/style/res/html.css | 18++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/browser/base/content/test/static/browser_parsable_css.js b/browser/base/content/test/static/browser_parsable_css.js @@ -73,6 +73,11 @@ if (!Services.prefs.getBoolPref("layout.css.scroll-anchoring.enabled")) { if (!Services.prefs.getBoolPref("layout.css.text-decoration-trim.enabled")) { ignoreList.push({ + sourceName: /html\.css$/i, + errorMessage: /Unknown property .*text-decoration-trim/i, + isFromDevTools: false, + }); + ignoreList.push({ sourceName: /ua\.css$/i, errorMessage: /Unknown property .*text-decoration-trim/i, isFromDevTools: false, diff --git a/layout/style/res/html.css b/layout/style/res/html.css @@ -527,6 +527,24 @@ del { text-decoration: line-through; } +u:lang(ja), +u:lang(ko), +u:lang(zh), +s:lang(ja), +s:lang(ko), +s:lang(zh), +ins:lang(ja), +ins:lang(ko), +ins:lang(zh), +del:lang(ja), +del:lang(ko), +del:lang(zh), +strike:lang(ja), +strike:lang(ko), +strike:lang(zh) { + text-decoration-trim: auto; +} + big { font-size: larger; }