<!DOCTYPE html> <html> <head> <style> div { display: flex; } div:after { display: -moz-deck; content: counter(b); } </style> </head> <body> <div></div> </body> </html>