Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4ee28e6df8589851cd3064ac4ccc58da12815f20
https://github.com/WebKit/WebKit/commit/4ee28e6df8589851cd3064ac4ccc58da12815f20
Author: Devin Rousso <[email protected]>
Date: 2026-10-09 (Fri, 09 Oct 2026)
Changed paths:
A LayoutTests/inspector/css/overridden-property-cascade-layer-expected.txt
A LayoutTests/inspector/css/overridden-property-cascade-layer.html
M Source/WebInspectorUI/UserInterface/Models/CSSGrouping.js
M Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js
Log Message:
-----------
Web Inspector: Styles: Declarations marked as !important within CSS @layer
rule are not correctly accounted for when computing style overrides
https://bugs.webkit.org/show_bug.cgi?id=293496
<rdar://problem/151931708>
Reviewed by Timothy Hatcher.
* Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js:
(WI.DOMNodeStyles.prototype._markOverriddenProperties):
(WI.DOMNodeStyles.prototype._markOverriddenProperties.isImportantInDifferentLayer):
Added.
* Source/WebInspectorUI/UserInterface/Models/CSSGrouping.js:
(WI.CSSGrouping.prototype.get isLayer): Added.
Add helper for identifying `@layer [name]` and `@import url layer(name)`.
* LayoutTests/inspector/css/overridden-property-cascade-layer.html: Added.
* LayoutTests/inspector/css/overridden-property-cascade-layer-expected.txt:
Added.
Canonical link: https://commits.webkit.org/323275@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications