Bug 67336 - Web Inspector: Add support for inspecting :visited styles
Summary: Web Inspector: Add support for inspecting :visited styles
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: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 16:34 PDT by krinklemail
Modified: 2011-11-30 14:28 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description krinklemail 2011-08-31 16:34:22 PDT
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.
Comment 1 Pavel Feldman 2011-08-31 22:18:34 PDT
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.
Comment 2 Alexander Pavlov (apavlov) 2011-11-23 07:59:41 PST
In Chrome 16.0.912.36 (Official Build 109393) beta (WebKit r97678) I can see the :visited rule being active for visited links.
Comment 3 krinklemail 2011-11-30 14:28:33 PST
Thanks, this is good enough.