- From: Shinyu Murakami via GitHub <sysbot+gh@w3.org>
- Date: Wed, 01 Mar 2023 07:54:38 +0000
- To: public-css-archive@w3.org
There are certain uses cases of negative page margins.
- negative page margins are used to prevent unwanted page breaking. This is necessary unless we can use `break-inside: never` (discussed in #3404).
- negative page margins can be used to position images fitting to the bleed edges.
Example:
```css
@page {
size: A4; /* 210mm 297mm */
marks: crop;
bleed: 3mm;
margin: -3mm;
}
img {
display: block;
width: 100vw; /* = 216mm */
height: 100vh; /* = 303mm */
}
```
--
GitHub Notification of comment by MurakamiShinyu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8508#issuecomment-1449506451 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 1 March 2023 07:54:40 UTC