<?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>62437</bug_id>
          
          <creation_ts>2011-06-10 00:45:33 -0700</creation_ts>
          <short_desc>Adjacent sibling selector followed directly by nav selector without whitespace causes rule to be ignored</short_desc>
          <delta_ts>2011-06-12 19:50:08 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>47971</dup_id>
          
          <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="Martin Jansson">martin.jansson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dominicc</cc>
    
    <cc>mihnea</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>418560</commentid>
    <comment_count>0</comment_count>
      <attachid>96706</attachid>
    <who name="Martin Jansson">martin.jansson</who>
    <bug_when>2011-06-10 00:45:33 -0700</bug_when>
    <thetext>Created attachment 96706
Test case for selector bug

When a sibling selector is followed by a selector for the nav element without any whitespace inbetween them, like so:

div+nav{color:green;}

This causes some kind of parsing error and the complete rule is ignored. However, it seems as this is only the case when the element following the plus sign is of type nav, substitute it for another element selector and the rule works. It also works if you place whitespace to the right of the plus sign, but not if you place it to the left.

All of the above works in recent versions of Firefox (4.0.1), Opera (11.10) and IE (9)

From W3C CSS2 Recommendation: &quot;White space may appear between a combinator and the simple selectors around it.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>418632</commentid>
    <comment_count>1</comment_count>
    <who name="Mihnea Ovidenie">mihnea</who>
    <bug_when>2011-06-10 04:04:00 -0700</bug_when>
    <thetext>Seems like a duplicate of https://bugs.webkit.org/show_bug.cgi?id=47971.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>418635</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansson">martin.jansson</who>
    <bug_when>2011-06-10 04:14:02 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Seems like a duplicate of https://bugs.webkit.org/show_bug.cgi?id=47971.

So it seems, yes. Sorry about that. Couldn&apos;t find it when I searched for similar bugs before reporting though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419395</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-06-12 19:50:08 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 47971 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>96706</attachid>
            <date>2011-06-10 00:45:33 -0700</date>
            <delta_ts>2011-06-10 00:45:33 -0700</delta_ts>
            <desc>Test case for selector bug</desc>
            <filename>nav.html</filename>
            <type>text/html</type>
            <size>702</size>
            <attacher name="Martin Jansson">martin.jansson</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KCTxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KCTx0
aXRsZT5XZWJraXQgYWRqYWNlbnQgc2libGluZyBhbmQgbmF2IGJ1ZzwvdGl0bGU+Cgk8c3R5bGU+
CgkJYm9keSB7Y29sb3I6cmVkO30KCQlzZWN0aW9uIHttYXJnaW4tYm90dG9tOjEwcHg7fQoJCSNz
ZWN0aW9uMSBkaXYsCgkJI3NlY3Rpb24xIGRpdituYXYge2NvbG9yOmdyZWVuO30KCQkjc2VjdGlv
bjIgZGl2LAoJCSNzZWN0aW9uMiBkaXYrZGl2IHtjb2xvcjpncmVlbjt9CgkJI3NlY3Rpb24zIGRp
diwKCQkjc2VjdGlvbjMgZGl2ICtuYXYge2NvbG9yOmdyZWVuO30KCQkjc2VjdGlvbjQgZGl2LAoJ
CSNzZWN0aW9uNCBkaXYrIG5hdiB7Y29sb3I6Z3JlZW47fQoJPC9zdHlsZT4KPC9oZWFkPgo8Ym9k
eT4KCTxzZWN0aW9uIGlkPSJzZWN0aW9uMSI+CgkJPGRpdj5EaXY8L2Rpdj4KCQk8bmF2Pk5hdjwv
bmF2PgoJPC9zZWN0aW9uPgoJPHNlY3Rpb24gaWQ9InNlY3Rpb24yIj4KCQk8ZGl2PkRpdjwvZGl2
PgoJCTxkaXY+RGl2PC9kaXY+Cgk8L3NlY3Rpb24+Cgk8c2VjdGlvbiBpZD0ic2VjdGlvbjMiPgoJ
CTxkaXY+RGl2PC9kaXY+CgkJPG5hdj5OYXY8L25hdj4KCTwvc2VjdGlvbj4KCTxzZWN0aW9uIGlk
PSJzZWN0aW9uNCI+CgkJPGRpdj5EaXY8L2Rpdj4KCQk8bmF2Pk5hdjwvbmF2PgoJPC9zZWN0aW9u
Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>