Hi guys,
I am improving spatial navigation extension [1] and I am now facing
problems when I try to focus an element with some style set. For
example, cnn.com has
<...>
<div class="cnnT1Img">
<a
href="http://edition.cnn.com/2007/WORLD/meast/10/27/turkey.fight.ap/index.html">
<img src="index_files/t1home.jpg" alt="Turkey's PM vows to fight
rebels" border="0" height="239" hspace="0" vspace="0" width="265">
</a>
</div>
</...>
which displays the main image of the page, and it has the following
associated css code:
(...)
.cnnT1 .cnnT1Img
{position:relative;width:265px;height:239px;overflow:hidden;}
(...)
This 'overflow:hidden' avoids the <img> element to get highlighted with
normal focus enclosing rect (Pictures in [2] and [3] show the highlight
focus difference). In both case the image is focused. but [2] has
'overflow:hidden' set for the picture and [3] doesn't.
Actually, the whole page has similar css stuff along the whole webpage
source, ('display:none;' also makes things harder to me once it which
also avoids focus to be visualy applied , among others).
SNAV uses
http://lxr.mozilla.org/mozilla1.8.0/source/content/events/src/nsEventStateManager.cpp#3862
to focus on the proper nsIContent object, and I'd like to know how could
I ignore all style/css properties applied to that content when moving
focus to it through spatial navigation ?
ps: for mouse click or any other input it could remain at is ...
[1] http://www.mozilla.org/access/keyboard/snav/
[2] http://img.villagephotos.com/p/2005-12/1119988/CNN2.jpg
[3] http://img.villagephotos.com/p/2005-12/1119988/CNN1.jpg
Kind regards
--Antonio Gomes
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout