https://bugzilla.wikimedia.org/show_bug.cgi?id=54453
Web browser: ---
Bug ID: 54453
Summary: Don’t override site authors’ styles by using inline
style
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: UniversalLanguageSelector
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
The ULS specifies fonts by injecting inline style sheets into the DOM.
This overrides site style sheets, takes control away from site authors and
administrators, as well as readers, including those using accessibility
technology, and encourages authors to use the harmful !important CSS keyword.
An example of the problem: on en.wiktionary there is a mature framework of
classes used to set fonts by script code, alongside the use of HTML lang
attributes. The ULS randomly interferes with this.
For example, in the page Fraktur, a passage of text is specified as <span
class="Latf" lang="de"> to set it in a Fraktur font. The class .Latf applies
font-family: UnifrakturMaguntia, a web font that is *provided by the ULS.*
The ULS adds a style="font-family: sans-serif;" which would be needless
otherwise, but in en.Wiktionary overrides the authors’ CSS which resides in
MediaWiki:Common.css
https://en.wiktionary.org/wiki/Fraktur#German
https://en.wiktionary.org/wiki/MediaWiki:Common.css
How are authors supposed to reliably specify correct fonts? How are authors
supposed to specify web fonts provided by the ULS? Why are fonts specified with
inline CSS, which robs all control from authors? Why is German-language text
specifically formatted as sans-serif?
The ULS should operate using the standard framework of lang attributes,
classes, and style sheets instead of inline CSS, providing authors, editors,
readers, and users of accessibility technology with several avenues to control
or override its behaviour.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l