title: :not css selector is not working as expected
body: <p>I want to apply some css on the basis of dir rtl attribute on body tag</p>
  
  <p>My earlier implementation was below one which was not working</p>
  
  <pre><code>:not([dir="rtl"]) nav &gt; ul &gt; li:last-child a {
      padding-right: 0;
      margin-right: 0;
  }
  </code></pre>
  
  <p>By mentioning body tag its working fine and I am not able to get the reason of same. Any help will be highly appreciated.</p>
  
  <pre><code>body:not([dir="rtl"]) nav &gt; ul &gt; li:last-child a {
      padding-right: 0;
      margin-right: 0;
  }
  </code></pre>