Rule
Fully unobscured focus
No part of a focused element may be hidden behind overlays (AAA)
- Rule
focus-not-obscured-enhanced- WCAG 2.2
- 2.4.12 Focus Not Obscured (Enhanced) (opens in a new tab) (Level AAA)
- Severity
- Serious
What it checks
The AAA version of the unobscured focus check, with the same panels and the same exceptions. Here any overlap counts: the element's centre, corners and edge midpoints are all tested, and an opaque fixed or sticky panel painting above any of them is reported.
When a person decides
Findings are always sent for review. What sits under a panel depends on the scroll position at the moment of the audit, and the browser does not scroll an element that is already in view, so focus can land half hidden. A person tabs through the page and checks the whole element, indicator included, stays clear.
Example
Sent to review
<style>
body { margin: 0; }
.story { height: 490px; }
.consent { position: fixed; bottom: 0; left: 0; right: 0; height: 100px; background: #fff; }
</style>
<div class="story"></div>
<a href="/privacy/">Privacy notice</a>
<div class="consent">This site uses cookies.</div>
Passes
<style>
html { scroll-padding-bottom: 100px; }
body { margin: 0; }
.story { height: 490px; }
.consent { position: fixed; bottom: 0; left: 0; right: 0; height: 100px; background: #fff; }
</style>
<div class="story"></div>
<a href="/privacy/">Privacy notice</a>
<div class="consent">This site uses cookies.</div>
The engine is tested against both examples.
How to fix it
Reserve room for the panel with scroll-padding-bottom or scroll-padding-top on the scrolling element, as deep as the panel, or move focus clear of the panel while it is showing.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.