demo · v140
counter() in alt
Toggle between the old and new behaviour. The visible bullets stay the same — what changes is what a screen reader announces. With v140 the / alt segment can call counter(), so AT hears a meaningful number.
- Pick up the dry cleaning
- Book the dentist for Tuesday
- Reply to Cara about the merge
- Renew the domain
What a screen reader announces:
li::before {
content: "★ " / "item " counter(item);
/* Visible: ★ | AT alt text: "item 1", "item 2", ... */
}