[webkit-dev] Find adjacent Element by position rendered in webkit
Sireesha Janakiraman
sireesha.jana at gmail.com
Tue Jan 24 07:34:10 PST 2012
How to figure out adjacent element by position given an element ?
Eg., In below example is there a way to figure out the text Height next to
Image.
<p><img src="test.jpg"/><i>J</i></p>
In above case, it is height of J that needs to be determined.
using previous/next sibling of image will work.
But there could be elements based on positions like relative or absolute
that render next of image (test.jpg) above, how to find those elements'
height?
In short , need to find adjacent element by position rendered in webkit.
Thanks,
Tinu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120124/291fff78/attachment.html>
More information about the webkit-dev
mailing list