Bug 99720

Summary: Web Inspector: [Styles] Property considered overridden if it is non-inherited important property in inherited style
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch yurys: review+

Alexander Pavlov (apavlov)
Reported 2012-10-18 08:07:57 PDT
Consider the HTML: <ul> <li>Text</li> </ul> and CSS: ul { color: green; padding: 1px !important; } li { padding: 2px; } In this case, for "li" the "padding: 2px" will have a line-through, since Inspector disregards the fact that "padding" is a non-inherited property and considers its occurrence in "ul" taking precedence, since it is !important.
Attachments
Patch (9.59 KB, patch)
2012-10-18 08:14 PDT, Alexander Pavlov (apavlov)
yurys: review+
Alexander Pavlov (apavlov)
Comment 1 2012-10-18 08:14:12 PDT
Alexander Pavlov (apavlov)
Comment 2 2012-10-18 23:59:02 PDT
Note You need to log in before you can comment on or make changes to this bug.