[webkit-help] Anchor element has never taken focus

Y.Sanachan sanachan.y at gmail.com
Mon Nov 7 07:31:25 PST 2011


I have written a content as like :-
<style type="text/css">
a img { float: left; }
<a href="/"><img src="xxxx" width="70" height="24" /></a>

Then, anchor element has never been focused by pressing TAB key.
If style is :-
a { float: left; }
a img { /* None */ }
anchor element can take a focus.

The renderer for anchor node is computed to (width:0, height:0). for
image node is (width:70, height:24).
So it seems to be FocusController ignores anchor element from focus
Is there any reasons why rect value is not inherited ?

Hope it helps,

More information about the webkit-help mailing list