<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>60946</bug_id>
          
          <creation_ts>2011-05-17 00:07:24 -0700</creation_ts>
          <short_desc>General (~) sibling selector with :focus pseudo class does not work</short_desc>
          <delta_ts>2011-05-18 19:23:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18425</dup_id>
          
          <bug_file_loc>http://devfiles.myopera.com/articles/1861/css-menu-ex1.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dan Richman">dan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dominicc</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>404962</commentid>
    <comment_count>0</comment_count>
      <attachid>93744</attachid>
    <who name="Dan Richman">dan</who>
    <bug_when>2011-05-17 00:07:24 -0700</bug_when>
    <thetext>Created attachment 93744
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404964</commentid>
    <comment_count>1</comment_count>
    <who name="Dan Richman">dan</who>
    <bug_when>2011-05-17 00:14:46 -0700</bug_when>
    <thetext>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/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404969</commentid>
    <comment_count>2</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-05-17 00:52:22 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405034</commentid>
    <comment_count>3</comment_count>
    <who name="Dan Richman">dan</who>
    <bug_when>2011-05-17 06:45:11 -0700</bug_when>
    <thetext>Ah, you are correct. The problem lies in Bug 18425.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406200</commentid>
    <comment_count>4</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-05-18 19:23:58 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 18425 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>93744</attachid>
            <date>2011-05-17 00:07:24 -0700</date>
            <delta_ts>2011-05-17 00:07:24 -0700</delta_ts>
            <desc>Test Case for Showing and Hiding a sibling</desc>
            <filename>show-hide.html</filename>
            <type>text/html</type>
            <size>694</size>
            <attacher name="Dan Richman">dan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxoZWFkPgogICA8dGl0bGU+bWVudSBtb2NrdXA8L3RpdGxlPgogICA8
bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDtjaGFyc2V0
PXV0Zi04IiAvPgogICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgogICAgICAuc2hvdyB7ZGlzcGxh
eTogbm9uZTsgfQogICAgICAuaGlkZTpmb2N1cyArIC5zaG93IHtkaXNwbGF5OiBpbmxpbmU7IH0K
ICAgICAgLmhpZGU6Zm9jdXMgeyBkaXNwbGF5OiBub25lOyB9CiAgICAgIC5oaWRlOmZvY3VzIH4g
I2xpc3QgeyBkaXNwbGF5Om5vbmU7IH0KICAgICAgQG1lZGlhIHByaW50IHsgLmhpZGUsIC5zaG93
IHsgZGlzcGxheTogbm9uZTsgfSB9CiAgIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgIDxwPkhl
cmUncyBhIGxpc3Q8L3A+CiAgICAgIDxkaXY+CiAgICAgICAgIDxhIGhyZWY9IiMiIGNsYXNzPSJo
aWRlIj5baGlkZV08L2E+CiAgICAgICAgIDxhIGhyZWY9IiMiIGNsYXNzPSJzaG93Ij5bc2hvd108
L2E+CiAgICAgICAgIDxvbCBpZD0ibGlzdCI+CiAgICAgICAgICAgIDxsaT5pdGVtIDE8L2xpPgog
ICAgICAgICAgICA8bGk+aXRlbSAyPC9saT4KICAgICAgICAgICAgPGxpPml0ZW0gMzwvbGk+CiAg
ICAgICAgIDwvb2w+CiAgICAgIDwvZGl2PgogICA8cD5Ib3cgYWJvdXQgdGhhdD88L3A+CjwvYm9k
eT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>