[14:18:08] Wikipedia Android app has a dark theme. When a template has a hardcoded whiteish background the theme yields white on white letters. Is there some parent CSS class that the dark theme adds that can be used via TemplateStyles to write styles specific to the dark theme? [14:20:32] I don't see any relevant information in [[mw:Wikimedia_Apps/Android_FAQ#Readability_and_themes]] [14:20:35] <詹建修> lls t.me/+tH4EPYVXLgJkMTA1 [14:21:13] I'm not sure, but my best guess is @media + prefer-color-scheme rule (re @Thecladis: Wikipedia Android app supports a dark theme. When a template has a hardcoded whiteish background the theme yields white on white...) [14:21:49] https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme [16:50:55] either I am doing it wrong, or sanitized CSS does not let me save the page with this media clause (re @Disk: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) [16:52:28] https://tools-static.wmflabs.org/bridgebot/8d1459d7/image_2022_10_13_19_52_25.png [16:59:45] [[mw:Css-sanitizer]] seems to comply with some 2014 CSS standard. Given that it is now 2022 I guess it is not the most recent one. [17:00:24] Any other ideas how to approach this problem? :) (re @Thecladis: Wikipedia Android app supports a dark theme. When a template has a hardcoded whiteish background the theme yields white on white...) [17:01:11] Is there perhaps some more developer focused documentation on the mobile app's dark scheme than this one? (re @wikilinksbot: [[mw:Wikimedia_Apps/Android_FAQ#Readability_and_themes]]) [17:05:33] indeed... (re @Thecladis: [[mw:Css-sanitizer]] seems to comply with some 2014 CSS standard. Given that it is now 2022 I guess it is not the most recent on...) [17:06:03] It seems it first appears in https://www.w3.org/TR/mediaqueries-5/#prefers-color-scheme which was released on 18 December 2021 :( [17:09:10] https://caniuse.com/mdn-css_at-rules_media_prefers-color-scheme indicates about 6% of users might be on non-supported browser [17:21:50] @Thecladis: the last rules update to css-sanitizer was https://gerrit.wikimedia.org/r/c/css-sanitizer/+/562681 It looks like Brad wrote that patch in January 2020 which was well before the media queries level 5 draft was published in December 2021. [17:23:01] Well, in this case it wouldn't matter, because non-supported browser is basically the status quo. Though that is pretty much the paradigm in CSS IIRC that you can write whatever rules, but only the supported ones would work (re @chicocvenancio: https://caniuse.com/mdn-css_at-rules_media_prefers-color-scheme indicates about 6% of users might be on non-supported browser) [17:23:14] :( (re @wmtelegram_bot: @Thecladis: the last rules update to css-sanitizer was https://gerrit.wikimedia.org/r/c/css-sanitizer/+/562681 It looks ...) [17:23:25] I phab bug about the desire for this selector would be a good start, but then we will have to find someone to work on the needed updates... [17:23:47] Well, the big question is though if one particular browser supports it: the Wikipedia app :) [17:24:06] it's probably a webview, so likely yes [17:24:30] Well, I am still hoping that there is one… (re @wmtelegram_bot: I phab bug about the desire for this selector would be a good start, but then we will have to find someone to work on th...) [17:24:41] but well, lemmi file something [17:27:50] https://www.mediawiki.org/wiki/Developers/Maintainers does not have encouraging things to say about ownership of the wikimedia/css-sanitizer library. It looks like the Content Transform team is maintaining TemplateStyles these days so we might be able to get them interested. [17:29:15] This is one of those (many) things where there was reasonable support for the initial project work, but then 4-5 years later its hard to figure out who is "responsible" for maintenance work [17:32:33] It is the first time I hear about the Content Transform Team 😅 [17:34:51] oh the parsoid dudes :) [17:36:05] yeah, it's the folks formerly known as Parsing and Parsoid plus some folks who were working on Maps [20:27:47] how/why Parsing and Maps got combined, I have no idea [23:37:03] :( (re @wmtelegram_bot: how/why Parsing and Maps got combined, I have no idea) [23:37:31] This might explain why Maps are not getting much love these days :( [23:37:56] depends what you mean by "these days" [23:40:12] Recent half a decade or so