Faithful variant pages
Each page is static markup faithful to one real or proposed pattern. Skip-target markup and reveal CSS vary independently so each variable can be tested on its own.
- Current Drupal —
- A11Y Project —
- GOV.UK —
- Proposed Drupal — SFNSP target, :focus reveal —
- Proposed Drupal — SFNSP target, :focus-within reveal —
- Proposed Drupal — id on <main> with tabindex, :focus reveal —
- Proposed Drupal — id on <main> with tabindex, :focus-within reveal —
- Proposed Drupal — empty anchor retained, :focus-within reveal —
Matrix
| Variant | Skip target | Reveal CSS |
|---|---|---|
| Current Drupal | empty destination anchor inside <main> (current Drupal) | :focus / :active reveal (current Drupal) |
| A11Y Project | <main id="main-content" tabindex="-1"> (id on landmark, focus shim kept) | a11yproject.css (project stylesheet) |
| GOV.UK | <main id="main-content" tabindex="-1"> (id on landmark, focus shim kept) | govuk.css (project stylesheet) |
| Proposed Drupal — SFNSP target, :focus reveal | <main id="main-content"> (SFNSP, no tabindex) | :focus / :active reveal (current Drupal) |
| Proposed Drupal — SFNSP target, :focus-within reveal | <main id="main-content"> (SFNSP, no tabindex) | :focus-within reveal (proposed) |
| Proposed Drupal — id on <main> with tabindex, :focus reveal | <main id="main-content" tabindex="-1"> (id on landmark, focus shim kept) | :focus / :active reveal (current Drupal) |
| Proposed Drupal — id on <main> with tabindex, :focus-within reveal | <main id="main-content" tabindex="-1"> (id on landmark, focus shim kept) | :focus-within reveal (proposed) |
| Proposed Drupal — empty anchor retained, :focus-within reveal | empty destination anchor inside <main> (current Drupal) | :focus-within reveal (proposed) |