RESOLVED FIXED 250136
Web Inspector: Styles Panel: Filtering for the text `@media` does not find @media CSS rules
https://bugs.webkit.org/show_bug.cgi?id=250136
Summary Web Inspector: Styles Panel: Filtering for the text `@media` does not find @m...
Razvan Caliman
Reported 2023-01-05 10:13:46 PST
Created attachment 464356 [details] Test file Steps to reproduce: - Open the attached test file: `at-nested.html` - Inspect the `body` element - In the Styles panel, type the string "media" in the Filter input field. Expected The `@media (min-width: 0)` CSS rule should be highlighted. Actual result: No rules found. Same result for `@supports`. The issue occurs because filtering only happens for the condition text of at-rules, not also for their labels: `SpreadsheetCSSStyleDeclarationSection.js._handleEditorFilterApplied()` https://github.com/WebKit/WebKit/blob/9e2245fba9e1eb44ce97c183fc45bbc39b3f592d/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js#L710-L714
Attachments
Test file (300 bytes, text/html)
2023-01-05 10:13 PST, Razvan Caliman
no flags
Screen recording with patch applied (2.40 MB, video/quicktime)
2023-03-17 10:57 PDT, Razvan Caliman
no flags
Radar WebKit Bug Importer
Comment 1 2023-01-05 10:14:16 PST
Razvan Caliman
Comment 2 2023-03-17 10:54:03 PDT
Razvan Caliman
Comment 3 2023-03-17 10:57:05 PDT
Created attachment 465482 [details] Screen recording with patch applied
EWS
Comment 4 2023-03-17 12:59:56 PDT
Committed 261804@main (bc8856c0306b): <https://commits.webkit.org/261804@main> Reviewed commits have been landed. Closing PR #11658 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.