pseudo-class

:blank — CSS reference

Matches content-empty pages inserted by forced left/right or recto/verso breaks in supporting paged-media engines. It does not match an ordinary empty HTML element. The tested Chromium discards this rule; the example supplies a normal forced page break as a fallback, without claiming blank-page generation.

Formal Syntax & Structure

css syntaxcss
@page :blank { @top-center { content: "BLANK"; } }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:blank</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}p{margin:0;font:12px/16px sans-serif}.next{break-before:page}@page{size:300px 400px;margin:40px;}@page :blank{@top-center{content:"BLANK"}}</style><body><main><p>ONE</p><p class="next">TWO</p></main></body></html>
CSS Reference