v150 · CSS · Print

Stylesheet Generator

Build a complete print stylesheet that uses env(safe-printable-inset) for margin-aware layout. Configure the @page rule, fallback value, additional layout rules, and copy the ready-to-use CSS.

Checking env(safe-printable-inset) support…
1 — @page rule options
Margin strategy
Fallback value
Extra padding mm
Page size
Include body reset
Include media query wrapper
Include comments
2 — Page diagram
Unprintable zones (hatched) and safe area (green box)
safe area
content here
unprintable safe area
Simulate printer margin (mm): 8 mm
3 — Generated CSS

see also

references

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗