On Wed, Mar 23, 2011 at 11:38 PM, Avi Drissman <a...@google.com> wrote:
> On Wed, Mar 23, 2011 at 1:45 AM, Ojan Vafai <o...@chromium.org> wrote: > >> For example, the following fails on my SnowLeopard machine due to lacking >> the focus ring: >> run-webkit-tests --debug -2 fast/css/focus-ring-outline-color.html -p >> --tolerance 0 >> > > This sounds very familiar to me. On Snow Leopard (not on Leopard) there > exists a bug where the system fails to draw a focus ring when drawing a > control into a context. See > ThemeChromiumMac.mm's currentOSHasSetFocusRingStyleInBitmapBug() for more > details. > > I solved it by doing an ugly interposing hack. It wasn't needed for WebKit > because its controls draw directly into the window. Perhaps it's needed for > WebKit2? > > Email me if you need more info. > > (For Apple peeps: rdar://7604051) > This isn't a painting bug. It's failing to return a value for document.querySelector(a:focus). In fact, I wonder if this is really correct behavior. Perhaps querySelector of :focus should return the document's focused element even if the window is blurred (analogous to document.activeElement)? Ojan
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev