# Focused element is obscured: rule own-focus-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.

## The message

- Identifier: `own.focus-obscured`
- Type of check: automatic
- Severity: moderate
- Success criterion: [WCAG 2.4.11 Focus Not Obscured (Minimum)](https://barrierepruefung.de/en/knowledge/wcag/2-4-11-focus-not-obscured-minimum)
- 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.

## What 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: sticky` or `position: fixed` at 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):

```css
: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:

```css
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:

```css
@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](https://barrierepruefung.de/en/knowledge/wcag/2-4-11-focus-not-obscured-minimum).

## 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](https://www.w3.org/WAI/WCAG22/Techniques/failures/F110), retrieved on 2026-11-27
- [W3C Techniques, C43: Using CSS scroll-padding to un-obscure content](https://www.w3.org/WAI/WCAG22/Techniques/css/C43), retrieved on 2026-11-27

---

As of: 2026-11-29 · https://barrierepruefung.de/en/knowledge/rules/own-focus-obscured
