Hi,

Please don't cc me on newsgroup posts, ok?

Sorry .. Thunderbird did it for me :)


Antonio Gomes wrote:

1) After finish loading of html page, I wonder implement a method to tell me if the current focused element (with the focus rectangle around it) is above (up) or below (down), left or right in relation to the next focusable element, or just to make possible to retrieve the x and y coordinates of them, for graphical handling ...


You're assuming that "an element" is represented by a single rectangle in the page. This assumption is, unfortunately, false.

I'm not assuming this, am I :S ?! I'm not an expert in mozilla internals yet, but I think every object can be marked as a focused object . So this retangle previous cited is a characteristic of every object -> it is or not assigned (I know there is a big chance that I'm saying a wrong affirmation).


I mean what if the first element is both below and above the second element (that is, it has several parts, some of which are above and some of which are below)?

Hummm , Now I got it . I did not mentioned it, but what I want is to compare the position of these objects related with the coordinates (X,Y) corner of the retangle (area) around every object, so it wouldn't be a problem.



Worse yet, what happens if from the user's point of view these parts are separately focusable (thing <area> elements in a <map>, which can be focusable separately for every image the <map> is used with)?



are you saying cases like this ?!

<map>
<area> ... </area>
<image> ... </image>
</map>

Cheers and thanks again .

AntÃnio Gomes
Nokia Technology Institute (INdT)

"... but my whole life I've been writing my own tools for my own use. I'll survive 
..." (Torvalds, Linus)


_______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to