Bug 105690

Summary: button element doesn't accept CSS :focus styling
Product: WebKit Reporter: Raphael <raphael>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Windows 7   
URL: http://codepen.io/raphaelgoetter/pen/fLGow

Description Raphael 2012-12-23 09:26:31 PST
Tried following CSS :
button + label {background: yellow;}
button:focus + label {background: green;}

Result is not OK on Chrome 23 (label must be green on button click)

see : http://codepen.io/raphaelgoetter/pen/fLGow
Comment 1 Alexey Proskuryakov 2012-12-31 19:16:46 PST
I think that this is a duplicate of bug 22261. Label becomes green when the button is actually focused. just not when it's clicked.

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