<!DOCTYPE html> <!-- Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ --> <html> <head><meta charset="UTF-8"> <title>Reference: display:contents with orthogonal writing-mode</title> <style type="text/css"> span { display: inline-block; writing-mode: vertical-lr; width: 0; border: 1px solid; } </style> </head> <body> <span>a b c</span> </body> </html>