Commit 6cca14fe authored by Julie BLANC's avatar Julie BLANC
Browse files

samples files for all cases of margin boxes dimensions

parent cf7eb09b
Pipeline #32 canceled with stage
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
A auto-size // B, C not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-left{
content: "top-left";
background-color: crimson;
}
/* RIGHT MARGINS*/
@right-top{
content: "right-top";
background-color: aquamarine;
}
/* BOTTOM MARGINS*/
@bottom-left{
content: "bottom-left";
background-color: crimson;
}
/* LEFT MARGINS */
@left-top{
content: "left-top";
background-color: aquamarine;
}
/* CORNERS MARGINS */
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
A size // B, C not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS*/
@top-left{
content: "top-left";
width: 100px;
background-color: crimson;
}
/* RIGHT MARGINS */
@right-top{
content: "right-top";
height: 100px;
background-color: aquamarine;
}
/* BOTTOM MARGINS */
@bottom-left{
content: "bottom-left";
width: 100px;
background-color: crimson;
}
/* LEFT MARGINS */
@left-top{
content: "left-top";
height: 100px;
background-color: aquamarine;
}
/* CORNERS MARGINS */
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
B generated, auto-size // A, C not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-center{
content: "top-center";
background-color: yellow;
}
/* RIGHT MARGINS */
@right-middle{
content: "right-middle";
background-color: cornflowerblue;
}
/* BOTTOM MARGINS*/
@bottom-center{
content: "bottom-center";
background-color: yellow;
}
/* LEFT MARGINS */
@left-middle{
content: "left-middle";
background-color: cornflowerblue;
}
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
B size // A, C not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-center{
content: "top-center";
width: 300px;
background-color: yellow;
}
/* RIGHT MARGINS */
@right-middle{
content: "right-middle";
height: 300px;
background-color: cornflowerblue;
}
/* BOTTOM MARGINS */
@bottom-center{
content: "bottom-center";
width: 300px;
background-color: yellow;
}
/* LEFT MARGINS */
@left-middle{
content: "left-middle";
height: 300px;
background-color: cornflowerblue;
}
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
C generated, auto-size // A, B not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-right{
content: "top-right";
background-color: coral;
}
/* RIGHT MARGINS */
@right-bottom{
content: "right-bottom";
background-color: aqua;
}
/* BOTTOM MARGINS */
@bottom-right{
content: "bottom-right";
background-color: coral;
}
/* LEFT MARGINS*/
@left-bottom{
content: "left-bottom";
background-color: aqua;
}
/* CORNERS MARGINS */
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
C generated, size // A, B not not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-right{
content: "top-right";
width: 150px;
background-color: coral;
}
/* RIGHT MARGINS */
@right-bottom{
content: "right-bottom";
height: 150px;
background-color: aqua;
}
/* BOTTOM MARGINS */
@bottom-right{
content: "bottom-right";
width: 150px;
background-color: coral;
}
/* LEFT MARGINS*/
@left-bottom{
content: "left-bottom";
height: 150px;
background-color: aqua;
}
/* CORNERS MARGINS */
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
A (auto size) + B (auto-size) // C not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-left{
content: "top-left";
background-color: crimson;
}
@top-center{
content: "top-center";
background-color: yellow;
}
/* RIGHT MARGINS */
@right-top{
content: "right-top";
background-color: aquamarine;
}
@right-middle{
content: "right-middle";
background-color: cornflowerblue;
}
/* BOTTOM MARGINS */
@bottom-left{
content: "bottom-left";
background-color: crimson;
}
@bottom-center{
content: "bottom-center";
background-color: yellow;
}
/* LEFT MARGINS*/
@left-top{
content: "left-top";
background-color: aquamarine;
}
@left-middle{
content: "left-middle";
background-color: cornflowerblue;
}
/* CORNERS MARGINS */
@top-left-corner { background-color: Gainsboro; }
@top-right-corner { background-color: Gainsboro; }
@bottom-right-corner { background-color: Gainsboro; }
@bottom-left-corner { background-color: Gainsboro; }
}
</style>
</head>
<body>
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
</section>
</body>
\ No newline at end of file
<!DOCTYPE html PUBLIC>
<html lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
A (size) + B (size) // C not generated
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<style>
:root{
font-size: 18px;
}
@page {
size: 6in 8in;
margin: 30mm 20mm;
/* TOP MARGINS */
@top-left{
content: "top-left";
background-color: crimson;
}
@top-center{
content: "top-center";
width: 250px;
background-color: yellow;
}
/* RIGHT MARGINS */
@right-top{
content: "right-top";
background-color: aquamarine;
}
@right-middle{
content: "right-middle";
height: 100px;
background-color: cornflowerblue;
}
/* BOTTOM MARGINS */
@bottom-left{
content: "bottom-left";
background-color: crimson;
}
@bottom-center{
content: "bottom-center";
width: 100px;
background-color: yellow;
}