CKTIS / CSS
:left — left-page pseudo-class
The :left pseudo-class in an @page selector selects left-hand pages of a paginated document. It allows different margins, such as a larger right margin for binding. It does not select HTML elements.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
@page :left { margin-left: 20mm; margin-right: 35mm; }:left is a page pseudo-class used in an @page selector. It matches pages that would appear on the left of a facing-page spread. It does not mean the left part of the screen and cannot select elements through expressions such as div:left.
The browser classifies pages as left or right even for single-sided printing. Classification depends on page progression, not printed page numbers. In an ordinary horizontal, left-to-right document, the first page is right and the second is left; do not generalize this to every writing mode.
An @page :left rule can change left-page margins, while @page :right targets right pages. The :left pseudo-class increases selector specificity, so in the example the right-margin declaration in @page :left wins over the corresponding declaration in the plain @page rule. Specificity does not override higher-priority declarations in the cascade: for example, an !important margin declaration in a plain @page rule can override a normal declaration in @page :left. These rules format pages but do not enable duplex printing.
The example forces a page break before the second section. The expected result applies to print preview or PDF, not the normal page view. Print settings should not override CSS margins; the result requires local verification.
Examples
<!doctype html>
<html lang="en" dir="ltr">
<meta charset="utf-8">
<title>Left page test</title>
<style>
@page { size: A4; margin: 20mm; }
@page :left { margin-right: 35mm; }
html { writing-mode: horizontal-tb; }
body { margin: 0; font: 16px sans-serif; }
section + section { break-before: page; }
</style>
<section>Page 1</section>
<section>Page 2</section>
</html>Result
Two printed pages: Page 1 has 20mm margins; Page 2 has a 35mm right margin and 20mm on the other sides.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.