display-none-elements.html 870 Bytes
Newer Older
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>display: none elements should be ignored</title>
    <style>
        #cover {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
            break-after: page;
            align-items: flex-end;
        }
        #displayNoneStyle {
            display: none;
        }
        #displayNoneWithPageBreak {
            display: none;
            break-after: page;
        }
    </style>
</head>
<body>
<div id="cover" class="title-page">
    <h1>Title</h1>
</div>
<div id="displayNoneInlineStyle" style="display: none;"></div>
<div id="displayNoneStyle"></div>
<div id="displayNoneWithPageBreak"></div>
<script src="../../dist/paged.polyfill.js"></script>
</body>
</html>