Skip to content

Bug 1395766: Very small font size for <rt> inside <rtc> when lang="zh… - #1

Open
patrickdark wants to merge 1 commit into
masterfrom
patrickdark-bug-1395766
Open

Bug 1395766: Very small font size for <rt> inside <rtc> when lang="zh…#1
patrickdark wants to merge 1 commit into
masterfrom
patrickdark-bug-1395766

Conversation

@patrickdark

Copy link
Copy Markdown
Owner

…-TW"

See https://bugzilla.mozilla.org/show_bug.cgi?id=1395766.

  1. Move font-size: 50% and -moz-min-font-size-ratio: 50% to rt elements only (to the exclusion of rtc elements).
  2. Remove Taiwanese Chinese font size rule (with 30% values on the same properties) targeted at bopomofo.

(Regarding item 2, the correct selector for bopomofo targeting is :lang("*-Bopo") (not :lang(zh-TW)) and can't be done properly without CSS4 Selectors "wildcard matching"; see https://drafts.csswg.org/selectors-4/#the-lang-pseudo. This also leads to weirdness where zh, zh-Bopo, zh-Bopo-TW, and zh-TW don't produce the same font size.)

…-TW"

See https://bugzilla.mozilla.org/show_bug.cgi?id=1395766.

1. Move `font-size: 50%` and ` -moz-min-font-size-ratio: 50%` to `rt` elements only (to the exclusion of `rtc` elements).
2. Remove Taiwanese Chinese font size rule (with `30%` values on the same properties) targeted at bopomofo.

(Regarding item 2, the correct selector for bopomofo targeting is `:lang("*-Bopo")` (not `:lang(zh-TW)`) and can't be done properly without CSS4 Selectors "wildcard matching"; see https://drafts.csswg.org/selectors-4/#the-lang-pseudo. This also leads to weirdness where `zh`, `zh-Bopo`, `zh-Bopo-TW`, and `zh-TW` don't produce the same font size.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant