← Back to release summary

CSS @counter-style descriptor 'speak-as'

Category
CSS
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome 96)
Intent stage
Start prototyping

Summary

A custom counter style can be constructed with a meaning that is obvious visually, but impossible to meaningfully represent via a speech synthesizer or other non-visual means, or possible but nonsensical when naively read out loud. The 'speak-as' descriptor describes how to synthesize the spoken form of a counter formatted with the given counter style.

Motivation

A counter style can be constructed with a meaning that is obvious visually, but impossible to meaningfully represent via a speech synthesizer or other non-visual means, or possible but nonsensical when naively read out loud. The speak-as descriptor describes how to synthesize the spoken form of a counter formatted with the given counter style.

Standards & signals

Docs: https://bit.ly/3kEHluz

Explainers: https://drafts.csswg.org/css-counter-styles/#example-cce4b0db

View on chromestatus.com