blob: b5d66f6085da46cf6155020c8d79d84073962445 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>flexbox | natural breaks</title>
<link href="http://opera.com" rel="author" title="Opera Software" />
<link href="http://www.w3.org/TR/css-flexbox-1/#pagination" rel="help" />
<meta content="interact paged" name="flags" />
<style>
* {
widows: 1;
orphans: 1;
margin: 0;
height: 100%;
}
body {
display: flex;
flex-direction: column;
}
div {
height: 75%;
flex: 0 0 auto;
}
@media print {
div {
break-inside: avoid;
}
div+div {
border-top: 1em solid red;
}
}
</style>
</head><body><div>Enter print preview. You should not see red or the word fail on the
first page.</div>
<div>FAIL</div>
</body></html>
|