If you navigate page by TAB in Chrome it indicates focus on elements by adding an outline. The problem is that the outline is drawn outside, so I need to apply z-index to such outlined elements, so that the outline does not get hidden by elements with higher z-index than that of the focused element.
I've tried the :focus
selector, but it seems that an element can be focused in Chrome yet have no outline (e.g. if you click it with mouse). What is then the valid selector to apply a style to all outlined and only the outlined elements?
EDIT: What I mean by a focus without an outline is like in the following example:
<style> a:focus{color:red} </style>
<a href="#">abc</a><br>
<a href="#">def</a>
When you TAB over such links, they got both styled by the :focus rule and outlined, yet when you click them with mouse the style is applied but the element is not outlined by the browser.
:focus
should be the correct tag – jdickela
elements are not getting an outline on click. With TAB they do. Some day i read about a:focus-ring
selector but i think W3C didn't do aynthing on that. – jdickel