CSS - bleed
The bleed
at-rule descriptor specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks
property.
Example
CSS
Copy Code
@page { bleed: 1cm; }
Syntax
CSS
Copy Code
/* Keyword values */ bleed: auto; /* <length> values */ bleed: 8pt; bleed: 1cm;
Values
auto
- Computes to
6pt
if the value ofmarks
iscrop
. Otherwise it computes to zero. <length>
- Specifies by how far outward, in each direction, the bleed area extends past the page box. Values may be negative, but there may be implementation-specific limits.
Formal syntax
CSS
Copy Code
auto <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> <a href="css/length" title="Possible values: a number followed by'em', 'ex', 'ch', 'rem', 'px', 'cm', 'mm', 'in', 'vh', 'vw', 'vmin', 'vmax', 'pt', 'pc' or 'px', like 3px, 1.5cm, -0.5em or 0"><length></a>
Description
The bleed
at-rule descriptor specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks
property.
Related at-rule | @page |
---|---|
Initial value | auto |
Media | visual, paged |
Computed value | as specified |
Canonical order | the unique non-ambiguous order defined by the formal grammar |
Browser Compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
See Also
Specifications
Specification | Status | Comment |
---|---|---|
CSS Paged Media Module Level 3 The definition of 'bleed' in that specification. |
Working Draft | Initial definition |
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/@page/bleed