Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b19d0fae697fdf8f2f8a51005e273d0e865bedd9
      
https://github.com/WebKit/WebKit/commit/b19d0fae697fdf8f2f8a51005e273d0e865bedd9
  Author: Zak Ridouh <[email protected]>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    A LayoutTests/fast/loader/image-document-dark-mode-expected.html
    A LayoutTests/fast/loader/image-document-dark-mode.html
    A LayoutTests/fast/loader/resources/image-document-dark-mode-subframe.html
    M Source/WebCore/html/ImageDocument.cpp

  Log Message:
  -----------
  ImageDocument should support dark mode
https://bugs.webkit.org/show_bug.cgi?id=243204
rdar://97965029

Reviewed by Aditya Keerthi.

Add color-scheme: light dark to the root element of ImageDocument
so the background adapts to the user's system appearance instead of
always rendering white.

* LayoutTests/fast/loader/image-document-dark-mode-expected.html: Added.
* LayoutTests/fast/loader/image-document-dark-mode.html: Added.
* LayoutTests/fast/loader/resources/image-document-dark-mode-subframe.html: 
Added.
* Source/WebCore/html/ImageDocument.cpp:
(WebCore::ImageDocument::createDocumentStructure):

Canonical link: https://commits.webkit.org/322117@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to