[Webkit-unassigned] [Bug 138185] Web Inspector: I do not expect to see the same rule multiple times in styles sidebar
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 1 17:09:39 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=138185
--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org> ---
I think the deduplication really helps simplify the sidebar.
One case I hadn't thought of that this helps is inherited styles. Take this test:
<html>
<head>
<style>
/* simplified reset.css */
html, body, div, p { margin:0; padding:0; border:0; font-style: inherit; }
body { line-height:1.5; }
/* page styles */
p { margin: 0 0 1.5em; }
</style>
</head>
<body><div><p>Test</p></div></body>
</html>
Inspecting the <p> you will see the first reset rule 4 times total because of the "font-style: inherit" for the p, div, body, html. With de-duplication you only see it once, up above with high specificity and never in the inherited section. If there was in fact a font style it inherits, that would be listed in the inherited section, seriously reducing clutter.
--
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/20141202/ce0c444e/attachment-0002.html>
More information about the webkit-unassigned
mailing list