coderef

ruby-overhangLimited availability

The ruby-overhang CSS property sets whether ruby annotations may overlap adjacent text.

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–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
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: ruby-overhang.

Feature detection

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

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

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ruby-overhang151151✕18.2151✕18.2
ruby-overhang.auto151151✕18.2151✕18.2
ruby-overhang.none✕✕✕18.2✕✕18.2