title: Why isn't the test in my jQuery filter function working as expected?
body: <p>I used a function in filter to check whether the display mode is block but it's not working.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>$("#wrap_element").find("*").filter(function(){
      return this.css("display")==="block";
  }).css("background-color","red");
  </code></pre>
  
  <p>Thanks.</p>