Complementary landmarks should not be nested in other landmarks
This check is deprecated, with no replacement: ARIA allows an aside inside other landmarks. It was a best practice, not a WCAG requirement, asking that complementary content sit at the top level or inside main.
Deprecated
| Rule ID | landmark-complementary-is-top-level |
|---|---|
| Impact | Moderate |
| Success criterion | Best practice, not a WCAG requirement |
| Needs a change in the website’s code |
Example
<nav aria-label="Main">
<a href="/recipes">Recipes</a>
<div role="complementary">Free delivery on orders over $50</div>
</nav>The offer is announced as a landmark inside navigation, which clutters the menu.
<nav aria-label="Main">
<a href="/recipes">Recipes</a>
</nav>
<aside aria-label="Delivery offer">Free delivery on orders over $50</aside>Navigation and the delivery offer appear as two separate, named landmarks.
Why it matters
Screen reader users jump between landmarks to find their way around. A complementary region buried inside the navigation, the header or the footer is harder to discover, and it mixes unrelated content into a region that users expect to contain only links or site information.
The check was retired because an aside inside <main> or an article, for example a related-products box or a pull quote, is a valid and common pattern. Nesting it inside navigation or the banner is still worth avoiding.
This is a best practice, not a WCAG requirement.
How to fix it
Decide where the extra content belongs and place the landmark there.
Content related to the whole site. Put the <aside> next to <main>, at the top level:
<main>...</main>
<aside aria-label="Newsletter">...</aside>
Content related to the page or an article. Inside <main> is fine:
<main>
<h1>Lemon tart</h1>
<aside aria-label="You may also like">...</aside>
</main>
Promotions inside a menu, header or footer. Remove the landmark role and keep it as plain content, or move it out into its own <aside>.
Several asides on one page. Give each one a distinct aria-label, so the landmarks list tells them apart.
After the change, open your screen reader's landmarks list and confirm that each aside appears once, with a clear name, at the level you expect.
Checklist
- Keep asides out of navigation, header and footer landmarks.
- Place site-wide asides next to main.
- Name each aside with aria-label when there are several.
- Remove role="complementary" from content that is not supplementary.
How the check works
The check is deprecated and no longer runs by default. When enabled, it finds every <aside> without a role and every role="complementary" element, and fails it when any ancestor is another landmark. An ancestor main is the exception: an aside inside main passes. Review nesting manually with your screen reader's landmarks list.
Resources
- Landmark regions W3C WAI
Updated October 27, 2026