Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f765ec201581048d2116c0ed3720dad069242b6
      
https://github.com/WebKit/WebKit/commit/8f765ec201581048d2116c0ed3720dad069242b6
  Author: Razvan Caliman <[email protected]>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/AuditTestCaseContentView.css
    M Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css
    M Source/WebInspectorUI/UserInterface/Views/GraphicsOverviewContentView.css

  Log Message:
  -----------
  Web Inspector: (REGRESSION 297671@main) Oversized font-sizes in Audits and 
Graphics tabs
https://bugs.webkit.org/show_bug.cgi?id=297333
rdar://158226427

Reviewed by BJ Burg.

Some User Agent styles for headings nested in `<section>` elements were removed 
in https://commits.webkit.org/297671@main

The removed styles basically adjusted the heading styles down for each nesting 
level.
For example: `section h1` looks like `h2`, `section section h1` looks like `h3`.

This patch replicates the removed styles for the DOM structure in the Audits 
and Graphics tabs.

Drive-by: replace descendant element selectors with explicit direct descendant 
element selectors
to match Web Inspector style, clarify the DOM structure in CSS, and avoid 
unintentional styles.

* Source/WebInspectorUI/UserInterface/Views/AuditTestCaseContentView.css:
(.content-view-container > .content-view.audit-test-case.manager-editing > 
header > .information > h1 > img):
(.content-view.audit-test-case > header > .information > h1):
(section > .content-view.audit-test-case > header > .information > h1):
(.content-view.audit-test-case > header > .information > h1 > img):
(.content-view.audit-test-case.manager-editing.disabled:not(.editable) > header 
> .information > h1 > img):
(.content-view.audit-test-case > section > :is(.dom-nodes, .errors) > h1):
(section > .content-view.audit-test-case > section > :is(.dom-nodes, .errors) > 
h1):
(@media (prefers-color-scheme: dark) 
.content-view.audit-test-case.manager-editing > header > .information > h1 > 
img):
(.content-view-container > .content-view.audit-test-case.manager-editing > 
header h1 > img): Deleted.
(.content-view.audit-test-case > header h1): Deleted.
(.content-view.audit-test-case > header h1 > img): Deleted.
(.content-view.audit-test-case.manager-editing.disabled:not(.editable) > header 
h1 > img): Deleted.
(.content-view.audit-test-case > section h1): Deleted.
(@media (prefers-color-scheme: dark) 
.content-view.audit-test-case.manager-editing > header h1 > img): Deleted.
* Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css:
(.content-view-container > .content-view.audit-test > header > .information > 
h1):
(.content-view-container > .content-view.audit-test > header h1): Deleted.
* Source/WebInspectorUI/UserInterface/Views/GraphicsOverviewContentView.css:
(.content-view.graphics-overview > section > .header > h1):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to