WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
268223
XML Document Viewer should have dark mode
https://bugs.webkit.org/show_bug.cgi?id=268223
Summary
XML Document Viewer should have dark mode
Ahmad Saleem
Reported
2024-01-27 06:34:34 PST
Hi Team, Open following:
https://www.w3schools.com/xml/note.xml
Despite system settings being dark, this is still 'white' (eye sore - LOL!). We should update it to respect dark mode. WebKit Source:
https://searchfox.org/wubkat/rev/b96b33ee6c4c6dde7bf51c3744d6ccbc19a517e8/Source/WebCore/xml/XMLViewer.css
We need to add respective CSS - I believe. It is easy fix I think. Thanks!
Attachments
Local Build Screenshot Reference
(204.07 KB, image/png)
2024-01-27 07:14 PST
,
Ahmad Saleem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-01-27 07:07:31 PST
Few changes inspired from Chromium / Blink:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/xml/DocumentXMLTreeViewer.css;l=1;drc=047c7dc4ee1ce908d7fea38ca063fa2f80f92c77
>> Remove 'body { margin: 0; } <- We already have in html.css for margin: 8px
>> Align (collapse-button and expand-button) to have same height.
>> In (collapse-button and expand-button) and use background - svg image similar to Blink rather than -webkit-canvas.
>> For dark mode:
root { color-scheme: light dark; } @media (prefers-color-scheme: dark) { div.header { border-bottom: 2px solid white; } } ___
Ahmad Saleem
Comment 2
2024-01-27 07:14:47 PST
Created
attachment 469569
[details]
Local Build Screenshot Reference STP187 vs Minibrowser (local build)
Frances Cornwall
Comment 3
2024-01-27 14:04:07 PST
I am relating/it is a duplicate of
bug 267604
.
Radar WebKit Bug Importer
Comment 4
2024-02-03 06:35:13 PST
<
rdar://problem/122234600
>
zak ridouh
Comment 5
2026-02-24 11:33:37 PST
Pull request:
https://github.com/WebKit/WebKit/pull/59345
EWS
Comment 6
2026-07-09 11:45:59 PDT
Committed
316832@main
(b019fc2aabbe): <
https://commits.webkit.org/316832@main
> Reviewed commits have been landed. Closing PR #59345 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug