Bug 52102

Summary: a:focus inconsistant with IE/FF
Product: WebKit Reporter: Darth <priyajeet.hora>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: priyajeet.hora
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
anchor focusing none

Description Darth 2011-01-07 21:33:03 PST
Please try the code below in webkit, IE (greater than 7) and FF.
Clicking the anchor should reveal the text by applying the :focus psuedo class to the span.
However it doesn't in Safari and chrome.

<!doctype html>
<html>
<head>
<style>
	a span {
		display: none;
	}
	
	a:focus span {
		display: block;
	}
</style>
</head>
<body>
	<a href="#">Click me to reveal - <span>some stuff</span></a>
</body>
</html>

Downstream bug
http://code.google.com/p/chromium/issues/detail?id=42157
Comment 1 Darth 2011-01-07 21:33:47 PST
Created attachment 78302 [details]
anchor focusing
Comment 2 Alexey Proskuryakov 2011-01-08 14:03:31 PST

*** This bug has been marked as a duplicate of bug 22261 ***
Comment 3 Alexey Proskuryakov 2011-01-08 14:07:12 PST

*** This bug has been marked as a duplicate of bug 18425 ***