Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4f52c5eb318382ac79e290fc8894d90b4f1cbf59
https://github.com/WebKit/WebKit/commit/4f52c5eb318382ac79e290fc8894d90b4f1cbf59
Author: Razvan Caliman <[email protected]>
Date: 2025-05-27 (Tue, 27 May 2025)
Changed paths:
M
LayoutTests/inspector/formatting/resources/css-tests/selectors-expected.css
M LayoutTests/inspector/formatting/resources/css-tests/selectors.css
M Source/WebInspectorUI/UserInterface/Workers/Formatter/CSSFormatter.js
Log Message:
-----------
Web Inspector: Prettifying CSS with an asterisk and a `:not` selector changes
the CSS behaviour
https://bugs.webkit.org/show_bug.cgi?id=283428
rdar://71544976
Reviewed by Devin Rousso.
Ensure CSS pretty-printing does not add a space after the universal selector (*)
if it's followed by what could be a pseudo-class or pseudo-element
because that would change the intent of the selector.
* LayoutTests/inspector/formatting/resources/css-tests/selectors-expected.css:
(*:not(.foo)):
(div > *:not(.foo)):
(* :has(.foo)):
(div > * :has(.foo)):
(* > :is(.foo)):
(div > * > :is(.foo)):
* LayoutTests/inspector/formatting/resources/css-tests/selectors.css:
(*:not(.foo)):
(div>*:not(.foo)):
(* :has(.foo)):
(div>* :has(.foo)):
(*>:is(.foo)):
(div>*>:is(.foo)):
* Source/WebInspectorUI/UserInterface/Workers/Formatter/CSSFormatter.js:
Canonical link: https://commits.webkit.org/295447@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