Skip to content

[css-page-3] Specify how to handle negative page margins #8508

@dholbert

Description

@dholbert

(Related to #8335 , but now for margin...)

I don't think the css-page-3 spec ( https://w3c.github.io/csswg-drafts/css-page-3/ ) defines what to do (if anything) with negative @page { margin: ...} values (though I may have overlooked it).

In practice:

  • Chromium seems to honor negative @page margins, effectively inflating the page content area beyond the bounds of the sheet of paper on the sides that have negative margins. (So, content gets clipped on those sides, generally.)
  • Firefox clamps negative @page margin to 0 (or rather, to the printer's writable page area) with the intent of keeping page content on the sheet. (as of https://bugzilla.mozilla.org/show_bug.cgi?id=1665001 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions