property

text-combine-upright — CSS reference

Combines consecutive characters into a single upright typographic unit in vertical text. Initial none; inherited. The all value is useful for short numbers such as dates. The digits syntax is specified but must not be assumed interoperable. Keep the original text accessible.

Formal Syntax & Structure

css syntaxcss
none | all | digits <integer [2,4]>? (specification grammar; verify digits support)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS logical layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{writing-mode:vertical-rl;font-size:20px} #b{text-combine-upright:all}</style><body><p id="a" lang="ja">第<span id="b">12</span>章</p></body></html>
CSS Reference