<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add function webkit_dom_element_get_bounding_client_rect"
href="https://bugs.webkit.org/show_bug.cgi?id=163892">163892</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add function webkit_dom_element_get_bounding_client_rect
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Gtk
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bouanto@zoho.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bugs-noreply@webkitgtk.org
</td>
</tr></table>
<p>
<div>
<pre>Hello.
It seems there are not methods named webkit_dom_element_get_bounding_client_rect() in webkitdom to be used by a web extension.
I currently use webkit_dom_element_get_offset_{left,top} recursively, but it does not take CSS3 transformations into account.
Could you please add the function webkit_dom_element_get_bounding_client_rect() so that we can get the exact position of an element from a web extension?
The method is defined [here in webkit](<a href="https://github.com/WebKit/webkit/blob/1719216d75e6c08a8a6358062a5418d304e71e97/Source/WebCore/dom/Element.h#L177">https://github.com/WebKit/webkit/blob/1719216d75e6c08a8a6358062a5418d304e71e97/Source/WebCore/dom/Element.h#L177</a>).
Thanks.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>