Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d5761bc39af72356af341bbe1fe9bed3d3250300
      
https://github.com/WebKit/WebKit/commit/d5761bc39af72356af341bbe1fe9bed3d3250300
  Author: Devin Rousso <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.css
    M Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.js
    M Source/WebInspectorUI/UserInterface/Views/TabBar.css
    M Source/WebInspectorUI/UserInterface/Views/TabBarItem.js

  Log Message:
  -----------
  Web Inspector: Network: REGRESSION(?): network emulation tab bar icon is 
inverted in dark mode
https://bugs.webkit.org/show_bug.cgi?id=323940

Reviewed by Timothy Hatcher.

* Source/WebInspectorUI/UserInterface/Views/TabBarItem.js:
(WI.TabBarItem):
Add the `WI.TabContentView.prototype.get identifier` as a CSS class for 
instances to target.

* Source/WebInspectorUI/UserInterface/Views/TabBar.css:
(.tab-bar > .tabs > .item > .icon):
(@media (prefers-color-scheme: dark) .tab-bar > .tabs > .item > .icon):
Allow instances to override the `filter` of the `<img>` as needed.

* Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.js:
(WI.NetworkTabContentView):
(WI.NetworkTabContentView.tabInfo):
(WI.NetworkTabContentView.prototype._handleEmulatedConditionChanged):
* Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.css:
(.tab-bar > .tabs > .item.network.emulated > .icon): Added.
Use the above to prevent the dark mode `--filter-invert` from being used when 
network emulation is active.

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



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

Reply via email to