mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
38 lines
704 B
HTML
38 lines
704 B
HTML
<!DOCTYPE html>
|
|
<html><head><title>flexbox | break-after, line</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;}
|
|
div {
|
|
width: 20em;
|
|
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
p {
|
|
background: white;
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 2em;
|
|
|
|
flex: 1 0 auto;
|
|
}
|
|
p+p {background: red;}
|
|
@media projection, print {
|
|
p:first-child {
|
|
break-after: always;
|
|
background: yellow;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
</head><body><h4>Enter fullscreen or print preview. There should be no red on the
|
|
first page.</h4>
|
|
|
|
<div>
|
|
<p></p>
|
|
<p></p>
|
|
</div>
|
|
</body></html> |