@youronlyone@c.im assuming what you’re showing to me is a Firefox only css, should we just use
html[lang=“jp”] h1 {}
@youronlyone@c.im assuming what you’re showing to me is a Firefox only css, should we just use
html[lang=“jp”] h1 {}
@lil5@fosstodon.org
It's not "Firefox-only" per se, it's CSS. Firefox is fast when it comes to implementing updates that benefits multilingual and Asian support, and Chromium is either slow, implements a small part only, or just ignores it completely.
(aside: Another good example is Ruby
annotation. Firefox's implementation of Ruby is up-to-date while Chromium's stuck in 2010.
And this is very very annoying, you have to design for Chromium when it comes to Ruby annotations; or use JavaScript to serve different Ruby codes per browser. Chromium is practically the "modern IE6".)
It's the same with :lang()
.
In Chromium, you still have to do it like this:
:lang(en-GB), :lang(en-US), :lang(en-AU), :lang(en-NZ), :lang(en-PH) { }
In Firefox you can do it this way:
:lang(en-GB, en-US, en-AU, en-NZ, en-PH) { }
or
:lang("en-GB", "en-US", "en-AU", "en-NZ", "en-PH") { }
Another example, in Chromium:
:lang(ceb-Tglg), :lang(pam-Tglg), :lang(fil-Tglg) { }
:lang(ceb-Hano), :lang(pam-Hano), :lang(fil-Hano) { }
In Firefox:
:lang(\*-Tglg) { }
:lang(\*-Hano) { }
or
:lang("*-Tglg) { }
:lang("*-Hano) { }
^_~
The latest news and developments on Firefox and Mozilla, a global non-profit that strives to promote openness, innovation and opportunity on the web.
You can subscribe to this community from any Kbin or Lemmy instance:
Related
While we are not an official Mozilla community, we have adopted the Mozilla Community Participation Guidelines as far as it can be applied to a bin.
Always be civil and respectful
Don't be toxic, hostile, or a troll, especially towards Mozilla employees. This includes gratuitous use of profanity.
Don't be a bigot
No form of bigotry will be tolerated.
Don't post security compromising suggestions
If you do, include an obvious and clear warning.
Don't post conspiracy theories
Especially ones about nefarious intentions or funding. If you're concerned: Ask. Please don’t fuel conspiracy thinking here. Don’t try to spread FUD, especially against reliable privacy-enhancing software. Extraordinary claims require extraordinary evidence. Show credible sources.
Don't accuse others of shilling
Send honest concerns to the moderators and/or admins, and we will investigate.
Do not remove your help posts after they receive replies
Half the point of asking questions in a public sub is so that everyone can benefit from the answers—which is impossible if you go deleting everything behind yourself once you've gotten yours.