<?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>45168</bug_id>
          
          <creation_ts>2010-09-03 02:49:18 -0700</creation_ts>
          <short_desc>CSS multiple adjacent sibling selector sequence is ignored if prefixed with a pseudo-class selector</short_desc>
          <delta_ts>2013-07-11 04:39:21 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Pierre Mazière">pierre.maziere</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>7raivis</cc>
    
    <cc>allyouneedis</cc>
    
    <cc>kling</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>nison.mael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>273846</commentid>
    <comment_count>0</comment_count>
      <attachid>66479</attachid>
    <who name="Pierre Mazière">pierre.maziere</who>
    <bug_when>2010-09-03 02:49:18 -0700</bug_when>
    <thetext>Created attachment 66479
Test case

The following selector is not matched as it should:
 div.a:hover + div.b + div.c {background-color: yellow;}
EXPECTED: when the mouse is dragged over the div.a element, div.c background should change from white to yellow
OBSERVED: when the mouse is dragged over the div.a element, nothing happens

if the :hover pseudo-class, the selector is now:
 div.a + div.b + div.c {background-color: yellow;}
EXPECTED: div.c background is yellow
OBSERVED: div.c background is yellow

I have tested this whith several pseudo-classes: 
 :hover with DIV and A 
 :active and :focus with A
 :checked with input[type=radio]

WebKit nightly build (2010/09/01) always shows the wrong behaviour, ignoring the adjacent sibling selector sequence
Firefox 3.6.8 and Chromium 5 display the XHTML/CSS as expected by the W3C CSS specs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587621</commentid>
    <comment_count>1</comment_count>
    <who name="Maël Nison">nison.mael</who>
    <bug_when>2012-03-26 05:00:49 -0700</bug_when>
    <thetext>Bump.

I&apos;ve tried[1] with 17.0.963.83 m and 19.0.1080.0 canary.

The animation hack[2] works, but it make screen blink in some cases.

[1] http://jsfiddle.net/W7L7M/1/
[2] http://css-tricks.com/webkit-sibling-bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607330</commentid>
    <comment_count>2</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2012-04-21 23:20:46 -0700</bug_when>
    <thetext>The CSS hack 

     body { -webkit-animation: bugfix infinite 1s; }
     @-webkit-keyframes bugfix { from { padding: 0; } to { padding: 0; } }

applies like an issue on Chrome 18.0.1025.162 m, but doe not work on Chrome 20.0.1112.0 canary.

Demo http://jsfiddle.net/W7L7M/3/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626885</commentid>
    <comment_count>3</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2012-05-17 13:00:44 -0700</bug_when>
    <thetext>It is still not fixed on Chrome 21.0.1139.2 canary and works fine on Firefox 12.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>884729</commentid>
    <comment_count>4</comment_count>
    <who name="Frederik">allyouneedis</who>
    <bug_when>2013-05-05 11:03:14 -0700</bug_when>
    <thetext>still not fixed in Version 26.0.1410.63

here&apos;s some minimal code to try:

&lt;style&gt;.a:checked + .b{background:yellow;}&lt;/style&gt;
&lt;input type=&quot;checkbox&quot; class=&quot;a&quot;&gt;&lt;span class=&quot;b&quot;&gt;b&lt;/span&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>886598</commentid>
    <comment_count>5</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2013-05-08 22:14:30 -0700</bug_when>
    <thetext>The CSS hack

    html {
        -webkit-animation: issueSelector infinite 1s;
    }
    @-webkit-keyframes issueSelector {
        0% {
            display: block;
        }
        100% {
            display: block;
        }
    }

cases Android filckers, since it enables GPU acceleration by repainting html.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>66479</attachid>
            <date>2010-09-03 02:49:18 -0700</date>
            <delta_ts>2010-09-03 02:52:59 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1453</size>
            <attacher name="Pierre Mazière">pierre.maziere</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIGh0bWwgUFVC
TElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0
bWwxMS9EVEQveGh0bWwxMS5kdGQiPgo8aHRtbCB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMTk5
OS94aHRtbCcgeG1sbnM6eHNpPSdodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0
YW5jZScgeHNpOnNjaGVtYUxvY2F0aW9uPSdodHRwOi8vd3d3LnczLm9yZy9NYXJrVXAvU0NIRU1B
L3hodG1sMTEueHNkJyB4bWw6bGFuZz0nZW4nID4KPGh0bWw+CiAgPGhlYWQ+CiAgICA8dGl0bGU+
dGVzdDwvdGl0bGU+CiAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgogICAgICBhOmZvY3VzLmEg
KyBkaXYuYiArIGRpdi5jeyBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3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