when i push tab button, i see focus on those elements. when i click them, and leave it - i see no focus. it's not gtk's default behavior.
Created attachment 18558 [details] Example showing how onfocus does not fire when button is clicked.
When fixing this make sure to ifdef it, since on Mac buttons are deliberately not mouse focusable (to match the OS).
Confirmed, I see the same behaviour. GTK+ conventions dictate that buttons should be focusable for the GTK port.
Created attachment 23687 [details] Obey GTK+ focus conventions Alternatively, we could do this by simply not overriding HTMLFormControlElement::isMouseFocusable() and HTMLAnchorElement::isMouseFocusable() but I figured it's better to avoid platform-specific sections in the header files.
Comment on attachment 23687 [details] Obey GTK+ focus conventions This is fine for now. Eventually we could push such decisions to the RenderTheme maybe.
Landed in r36791.
Created attachment 23708 [details] border issue (In reply to comment #6) > Landed in r36791. I think it's this patch: I got blue borders arround links when I click on them with a border-width of 2-3 pixel. I think they are blue because of my blue theme. Look on the screenshot 'Bilder' on the top left.
Button (still) not focussing on windows (safari), the behaviour should not depend on operating system, so it should fire focus/blur events on mac as well. (I as a web developer don't care what operating system my web application is on (the browser should handle it))