title: Finding rendered HTML element positions using WebKit (or Gecko)
body: <p>I would like to get the dimensions (coordinates) for all the HTML elements of a webpage as they are rendered by a browser, that is the positions they are rendered at. For example, <code>(top-left,top-right,bottom-left,bottom-right)</code></p>
  
  <p>Could not find this in lxml. So, is there any library in Python that does this? I had also looked at Mechanize::Mozilla in Perl but, that seems difficult to configure/set-up.</p>
  
  <p>I think the best way to do this for my requirement is to use a rendering engine - like WebKit or Gecko.</p>
  
  <p>Are there any perl/python bindings available for the above two rendering engines? Google searches for tutorials on how to "plug-in" to the WebKit rendering engine is not very helpful. </p>