Bug 99720 - Web Inspector: [Styles] Property considered overridden if it is non-inherited important property in inherited style
Summary: Web Inspector: [Styles] Property considered overridden if it is non-inherited...
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: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-18 08:07 PDT by Alexander Pavlov (apavlov)
Modified: 2012-10-18 23:59 PDT (History)
8 users (show)

See Also:


Attachments
Patch (9.59 KB, patch)
2012-10-18 08:14 PDT, Alexander Pavlov (apavlov)
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 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.
Comment 1 Alexander Pavlov (apavlov) 2012-10-18 08:14:12 PDT
Created attachment 169414 [details]
Patch
Comment 2 Alexander Pavlov (apavlov) 2012-10-18 23:59:02 PDT
Committed r131864: <http://trac.webkit.org/changeset/131864>