Bug 60946 - General (~) sibling selector with :focus pseudo class does not work
Summary: General (~) sibling selector with :focus pseudo class does not work
Status: RESOLVED DUPLICATE of bug 18425
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://devfiles.myopera.com/articles/...
Keywords: HasReduction, HTML5
Depends on:
Blocks:
 
Reported: 2011-05-17 00:07 PDT by Dan Richman
Modified: 2011-05-18 19:23 PDT (History)
1 user (show)

See Also:


Attachments
Test Case for Showing and Hiding a sibling (694 bytes, text/html)
2011-05-17 00:07 PDT, Dan Richman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Richman 2011-05-17 00:07:24 PDT
Created attachment 93744 [details]
Test Case for Showing and Hiding a sibling

using the general (~) sibling selector combined with the :focus pseudo class does not work in webkit.

For instance,

  .hide:focus ~ #list {display:none}

As a test case, see attached file
or visit: http://devfiles.myopera.com/articles/1861/css-menu-ex1.html
Comment 1 Dan Richman 2011-05-17 00:14:46 PDT
This bug prevents WebKit from being able to show and hide content from pure CSS as Opera and Mozilla are currently able to do:

http://dev.opera.com/articles/view/css3-show-and-hide/
Comment 2 Dominic Cooney 2011-05-17 00:52:22 PDT
Works for me in Chrome 13.0.761.0 (Official Build 84747) dev WebKit 534.35 (trunk@86061) if I use tab to focus the link and WebKit nightly r86627 if I use Option-tab to focus the link.
Comment 3 Dan Richman 2011-05-17 06:45:11 PDT
Ah, you are correct. The problem lies in Bug 18425.
Comment 4 Dominic Cooney 2011-05-18 19:23:58 PDT

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