Bug 105690 - button element doesn't accept CSS :focus styling
Summary: button element doesn't accept CSS :focus styling
Status: RESOLVED DUPLICATE of bug 22261
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Windows 7
: P2 Normal
Assignee: Nobody
URL: http://codepen.io/raphaelgoetter/pen/...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-23 09:26 PST by Raphael
Modified: 2012-12-31 19:16 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***