[Webkit-unassigned] [Bug 250136] New: Web Inspector: Styles Panel: Filtering for the text `@media` does not find @media CSS rules

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 5 10:13:46 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=250136

            Bug ID: 250136
           Summary: Web Inspector: Styles Panel: Filtering for the text
                    `@media` does not find @media CSS rules
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rcaliman at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 464356

  --> https://bugs.webkit.org/attachment.cgi?id=464356&action=review

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230105/0a872f56/attachment-0001.htm>


More information about the webkit-unassigned mailing list