title: Find elements which have greater font-size than specified
body: <p>I am trying to define a JQuery statement for finding elements which have a greater (or lesser respectively) <code>font-size</code> than an input value.</p>
  
  <p>Possible input values:</p>
  
  <pre><code>"12px"
  "14pt"
  "120%"
  and so on...
  </code></pre>
  
  <p>My first approach is more of a draft because it cannot work this way. But maybe you have ideas how to achieve a solution. Here is what i have so far (the input value comes from elsewhere and is variable):</p>
  
  <pre><code>$('*').filter(function() {
      return $(this).css('font-size') &gt; '12px';
  })
  </code></pre>
  
  <p>Anyone?</p>
  
  <h1>Update</h1>
  
  <p>I was asked to explain why i would need something like this. I am writing an API using Selenium2 in Java, which is able to find elements and interact with them in an easier and more reliable way. This function will allow me to write code like <code>browser.find().titleElements()</code> which selects all <code>h1</code>, <code>h2</code>,... tags, but also elements which have a greater font-size than the average text on the page.</p>
  
  <p>The framework will also provide functions to select elements which are visually close to each other or in a specific direction:</p>
  
  <pre><code>HtmlElement nameLabel = browser.find().labelElement("name");
  HtmlElement nameInput = browser.find().closestInputElement(nameLabel);
  nameInput.below("tos").select();
  </code></pre>