RESOLVED FIXED 20691
Inspector: know and display the source of the rule that causes computed properties
https://bugs.webkit.org/show_bug.cgi?id=20691
Summary Inspector: know and display the source of the rule that causes computed prope...
Rowan Beentje
Reported 2008-09-06 16:15:58 PDT
Currently the web inspector displays the "computed style" section at the top of the "Styles" panel. When moused over, the tooltip for each displayed style rule is the same as that shown on the interface; this is useful for interface-truncated styles, but in most cases it would be more useful to see where the computed rule is coming from. xenon mentioned that much of the parsing to report this information is already present as it is used to cross out rules which are superceded by more specific rules. In an ideal world, this doesn't even need to be displayed in a tooltip; dreaming here, but as normal stylesheet sections show the toggle-tickbox when moused over, "computed styles" could show the origin of each style in grey next to the style. Even better - when double-clicked to edit, a process which currently does nothing in the computed style section (causing user confusion [for me and other dumb people]), the appropriate style could be jumped to and edited.
Attachments
[IMAGE] IE's Trace Styles panel. (62.15 KB, image/png)
2010-07-06 02:44 PDT, Pavel Feldman
no flags
Pavel Feldman
Comment 1 2010-07-06 02:44:34 PDT
Created attachment 60608 [details] [IMAGE] IE's Trace Styles panel.
Idan Gazit
Comment 2 2010-07-06 02:55:01 PDT
I'm interested in hacking on this, based on guidance received from pfeldman. The approach I envision is more like the one chosen by IE -- computed styles are list nodes, and relevant rules can be displayed by expanding the node for a given property.
Timothy Hatcher
Comment 3 2010-07-06 06:33:46 PDT
I like IE's approch. But making them expandable prevents us from synthezizing shorthands in the computed style in the future, if that is important. But we haven't done that yet, so it might not be.
Rob Colburn
Comment 4 2012-05-10 11:27:04 PDT
Is this complete now?
Note You need to log in before you can comment on or make changes to this bug.