coderef

speak-asLimited availability

The speak-as CSS property sets how any element's content is spoken. Not to be confused with the speak-as descriptor of @counter-style at-rules.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–11Not supported
11.1+Supportedsince Apr 12, 2018
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–11Not supported
11.3+Supportedsince Mar 29, 2018
Current: 27

How to use

Not supported in Chrome, Edge, Firefox, Chrome Android, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: speak-as.

Feature detection

CSS · check before using
@supports (speak-as: initial) {
  /* styles that rely on speak-as */
}

/* or in JavaScript */
if (CSS.supports("speak-as", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (6). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
speak-as✕✕✕11.1✕✕11.3
speak-as.digits✕✕✕11.1✕✕11.3
speak-as.literal-punctuation✕✕✕11.1✕✕11.3
speak-as.no-punctuation✕✕✕11.1✕✕11.3
speak-as.normal✕✕✕11.1✕✕11.3
speak-as.spell-out✕✕✕11.1✕✕11.3