Editing
Project:Village pump (technical)
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Question about <math> markup element bug == There is a known bug in the ''<math> ''markup element. The bug is: https://phabricator.wikimedia.org/T268279 This bug is a couple of years old. The bug is: when a mobile user is viewing a Wikimedia page in dark mode (white text on a black background), the ''<math> '' element sometimes draws black text on a black background. That is bad, because the formula is invisible. I suppose this bug doesn't get much attention because (a) it only happens when a user has Dark Mode enabled; (b) only on phones & iPads; and (c) only if the ''<math>'' element is used in certain ways. One solution I found that works in many cases is to change the markup from ''<math display="block''> to '':<math> ''. That fixes the issue in my test cases. This change is only proposed for simple formulae that take a single line (so the "block" display option is not significant). The change appears to have no downsides (provided the formula is a single line). My question is: is there an expert in the Wikimedia ''<math> ''markup element that I can ask to confirm that my suggested solution won't impact the display of formulae? And also to ask why adding ''display="block"'' changes the text color? I posted a note in https://phabricator.wikimedia.org/T268279 , but how can I ask the folks responsible for the ''<math>'' markup element about this? [[User:Noleander|Noleander]] ([[User talk:Noleander|talk]]) 21:21, 14 August 2022 (UTC) : I looked thru the archives of Village Pump, and found this discussion: https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(policy)/Archive_138#Math_block_display This was a proposal to prohibit indenting ''<math>'' with a colon, but the proposal was not adopted. The consensus seems to be that ''<math display="block">'' is generally desirable (for accessibility reasons) but is not a requirement, and '':<math>'' is acceptable. That discussion aside, my key question remains: why does adding ''display="block"'' to ''<math>'' change the text color in dark mode within Wikipedia app? [[User:Noleander|Noleander]] ([[User talk:Noleander|talk]]) 23:11, 14 August 2022 (UTC) ::Please avoid [[WP:MULTI|posting in multiple locations]]. For others, see discussion at [[Template_talk:Math#"Display=Block"_does_not_work_with_Dark_Mode|template talk:Math]]. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 04:43, 15 August 2022 (UTC)
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Project page
Discussion
Read
Edit source
History
Page actions
Project page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information