Bug 40059 - Web Inspector: Style with all properties disabled is not displayed after WebInspector is re-opened
Summary: Web Inspector: Style with all properties disabled is not displayed after WebI...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 07:19 PDT by Alexander Pavlov (apavlov)
Modified: 2010-12-02 03:35 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2010-06-02 07:19:04 PDT
In Web Inspector, Elements panel, disable all properties of some node style, close and re-open Web Inspector.
The style does not appear in the StylesSidebarPane for that node.

According to
void CSSStyleSelector::matchRulesForList(CSSRuleDataList* rules, int& firstRuleIndex, int& lastRuleIndex),
a rule never matches a selector if it has no properties (which is the case, since a disabled property is physically removed from its style).
Comment 1 Alexander Pavlov (apavlov) 2010-12-02 03:35:17 PST
This works fine now that we have migrated to the InspectorCSSAgent backend.