Bug 67336
| Summary: | Web Inspector: Add support for inspecting :visited styles | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | krinklemail |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
krinklemail
Third party JavaScript is not allowed to access this information, that's a known reality and I understand. But I'd expect a more trusted component (ie. extension or something like the Web Inspector) to be be able to get to this.
Steps to reproduce:
* Open a html document with links and styled :visited (ie. a { color: blue; } a:visited { color: purple; } )
* Visit the link
* Inspect the link (which now looks purple, or red when you're pressing it)
* Inspector should show cascading rule that a:visisted overrode the a for color-property
What happends:
* The :visited rule is nowhere to be found, as if the link is still blue (which it "thinks")
Expected result:
* The rule for :visisted overrode the other rule. and should be included in the styles sidebar.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Pavel Feldman
While we are fixing your request, try clicking the http://trac.webkit.org/export/94269/trunk/Source/WebCore/inspector/front-end/Images/paneElementStateButtons.png button in the styles sidebar and forcing the :visited (or any other styles). That would give you a way to style the visited link.
Alexander Pavlov (apavlov)
In Chrome 16.0.912.36 (Official Build 109393) beta (WebKit r97678) I can see the :visited rule being active for visited links.
krinklemail
Thanks, this is good enough.