Focused element is obscured
Tabbing through the page, users cannot see where they have landed: a fixed bar covers the focused element completely because it sits exactly where the browser scrolls it. Set scroll-padding on the scrolling element to the height of those bars. The browser then keeps that distance whenever it scrolls to the focus.
Last reviewed: Sources
The message
- Identifier
-
own.focus-obscured - Type of check
- automatic
- Severity
- moderate
- Success criterion
- Meaning
- The element holding keyboard focus lies entirely behind another element — usually a sticky header or footer.
- Impact
- The focus is there but cannot be seen. Keyboard users lose their bearings exactly where something is meant to happen.
- Fix
- Keep clear of sticky areas using scroll-margin, or hide them while focus moves.
How does your website stand?
The free check shows what can be measured automatically, with the location. No account.
Check website for freeWhat the rule checks
The rule runs during the same Tab key traversal as the visible focus check, in the desktop window. At each stop the browser has already scrolled the element into view. The rule then asks, at the four corners and at the centre of the element, which element lies on top. If at none of these points it finds the element itself, one of its children or an element that contains it, the element counts as completely obscured.
Partial obscuring is not reported, because the criterion allows it. Whatever sits inside an iframe or
a shadow DOM is not judged. 2.4.11 Focus Not Obscured (Minimum) (Level AA) belongs to WCAG 2.2, and the report lists the finding as
a recommendation.
Common causes
- Sticky header. A header with
position: stickyorposition: fixedat the top. When focus moves backwards, for instance with Shift and Tab, the browser scrolls the element to the top edge, right underneath the header (F110). - Fixed bar at the bottom. Footer bars, cookie notices and banners at the bottom edge cover the footer links as focus moves forward (F110, C43).
- False alarm from an invisible layer. A transparent element sits over part of the page, such as the empty frame of a banner. To the eye nothing is hidden, and the criterion is not violated there. The measurement still finds an element on top and reports it as obscuring. The layer is a nuisance all the same: clicks on that area land on it rather than on the element beneath.
How to fix it
Tell the browser how much room the fixed bars take up. scroll-padding on the scrolling element also
applies when the browser scrolls to the focused element (C43):
:root {
--header-height: 5rem;
--bar-height: 4rem;
}
html {
scroll-padding-top: var(--header-height);
scroll-padding-bottom: var(--bar-height);
}
.site-header {
position: sticky;
top: 0;
}
scroll-margin on the focusable elements themselves has the same effect. scroll-padding in a single
place is usually easier to maintain.
A fixed bar at the bottom also needs room below the last content, otherwise the footer stays underneath it even at the end of the page:
body {
padding-bottom: var(--bar-height);
}
If the height of the bars varies, for instance because the header wraps on narrow screens, adjust the variables in media queries. If the window is short, as with strong zoom, it is better not to let the header stick at all:
@media (max-width: 40rem) {
:root {
--header-height: 8rem;
}
}
@media (max-height: 30rem) {
.site-header {
position: static;
}
}
Remove an invisible layer while it shows nothing, or let clicks and the measurement pass through it
with pointer-events: none.
Which cases the criterion exempts is explained on the page about WCAG 2.4.11.
Sources
- W3C Techniques, F110: Failure of Success Criterion 2.4.11 Focus Not Obscured (Minimum) due to a sticky footer or header completely hiding focused elements, retrieved on November 27, 2026
- W3C Techniques, C43: Using CSS scroll-padding to un-obscure content, retrieved on November 27, 2026