[Webkit-unassigned] [Bug 138438] New: Web Inspector: Pseudo element matchedCSSRules do not include matching selector info

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 5 14:07:07 PST 2014


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

            Bug ID: 138438
           Summary: Web Inspector: Pseudo element matchedCSSRules do not
                    include matching selector info
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: benjamin at webkit.org, graouts at webkit.org,
                    joepeck at webkit.org, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

* SUMMARY
Pseudo element matchedCSSRules do not include matching selector info. The frontend then displays all selectors as matching instead of showing exactly which selector matched.

* STEPS TO REPRODUCE
1. Inspect <audio> on data:text/html,<audio%20controls>
2. Expand Shadow DOM and select ::webkit-media-text-track-container element
3. Show Styles Sidebar
  => "video::-webkit-media-text-track-container, audio::-webkit-media-text-track-container" selectors are both highlighted.
  => expected only audio::-webkit-media-text-track-container to be highlighted, since this is an <audio>

* NOTES
The result of CSSAgent.getMatchedStylesForNode includes the Rule and Selectors, but an empty matchingSelectors list.

{
    "result": {
        "matchedCSSRules": [
        ...
         {
            "rule": {
                "selectorList": {
                    "selectors": [{
                        "text": "video::-webkit-media-controls-panel",
                        "specificity": [0, 1, 1]
                    }, {
                        "text": "audio::-webkit-media-controls-panel",
                        "specificity": [0, 1, 1]
                    }],
                    "text": "video::-webkit-media-controls-panel, audio::-webkit-media-controls-panel"
                },
            },
            "matchingSelectors": []
        }]
        ...
    }
}

-- 
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/20141105/a692578a/attachment-0002.html>


More information about the webkit-unassigned mailing list