Steps to replicate the issue (include links if applicable):
- Visit https://en.wikipedia.org/wiki/Template:AfC_submission/styles.css or https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Template:Tracked/styles.css in dark mode
What happens?: At the least, semicolons, colons, curly brackets, and full stops match the background color which means they are hiding. I suspect there are others.
What should have happened instead?: Probably wants for dark characters instead.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
It is amazing how much noise we have in CSS. :) I find this version surprisingly more readable in some ways.
Requirement
Ensure that black text does not inherit color in page syntax highlighting for dark mode.
BDD
gherkin
Feature: Black Text Color in Syntax Highlighting
Scenario: Ensure black text remains visible in dark mode
Given the user has enabled dark mode
When the user views a page with syntax highlighting
Then black text should not inherit color and should remain visibleTest Steps
Test Case 1: Ensure Black Text Remains Visible in Dark Mode
- Visit this page or this page in dark mode.
- Verify that black text, including semicolons, colons, curly brackets, and full stops, remains visible.
- AC1: Confirm that black text does not inherit the background color and remains visible.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T365774#9851729 |
QA Results - PROD
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T365774#9881292 |


