RESOLVED INVALID Bug 113476
Web Inspector: [CSS] One rule appears multiple times in sidebar.
https://bugs.webkit.org/show_bug.cgi?id=113476
Summary Web Inspector: [CSS] One rule appears multiple times in sidebar.
Eugene Klyuchnikov
Reported 2013-03-27 22:10:24 PDT
Created attachment 195481 [details] Demo HTML In some cases one rule appears several times in sidebar. Moreover it overrides own values. See demo HTML and screenshot in attachemts.
Attachments
Demo HTML (485 bytes, text/html)
2013-03-27 22:10 PDT, Eugene Klyuchnikov
no flags
---- (22.80 KB, image/png)
2013-03-27 22:10 PDT, Eugene Klyuchnikov
no flags
Demo screenshot (126.27 KB, image/png)
2013-03-27 22:19 PDT, Eugene Klyuchnikov
no flags
Eugene Klyuchnikov
Comment 1 2013-03-27 22:10:59 PDT
Eugene Klyuchnikov
Comment 2 2013-03-27 22:19:43 PDT
Created attachment 195483 [details] Demo screenshot
Alexander Pavlov (apavlov)
Comment 3 2013-03-28 01:06:31 PDT
I'm not sure if we want to fix this at all (but this opinion is by no means authoritative), since this is what WebCore reports to us, and this is how exactly it performs rule matching. Since .a, .b, .c { X } is equivalent to .a { X } .b { X } .c { X } and all three selector groups (".a", ".b", ".c") match the selected element independently (notice that all of them are black, not grayed-out), the rule is reported thrice. Moreover, selector groups might have different specificities, so the same rule may get reported in different positions inside the cascade, and this may turn useful sometimes. I believe we might want to eliminate repetitive consecutive matches for the same rule, though.
Eugene Klyuchnikov
Comment 4 2013-03-28 01:38:36 PDT
(In reply to comment #3) > I'm not sure if we want to fix this at all (but this opinion is by no means authoritative), since this is what WebCore reports to us, and this is how exactly it performs rule matching. Oh, I see. Thank you for explanation.
Note You need to log in before you can comment on or make changes to this bug.