File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 39
39
background-color : aqua;
40
40
border : 1px solid black;
41
41
}
42
+
43
+ /* Table styling */
44
+ table {
45
+ border-collapse : collapse;
46
+ }
47
+ td {
48
+ border : 1px solid black;
49
+ }
42
50
</ style >
43
51
</ head >
44
52
68
76
< p class ="avoid fullpage "> Full-page element (should start on new page using avoid-all/css/specify).</ p >
69
77
< p > No effect (for spacing).</ p >
70
78
< p class ="avoid bigger "> Even bigger element (should continue normally, because it's more than a page).</ p >
79
+
80
+ <!-- Advanced avoid-all tests. -->
81
+ < div >
82
+ < p > No effect inside parent div (testing avoid-all - no break yet because parent is more than a page).</ p >
83
+ < p class ="big "> Big element inside parent div (testing avoid-all - should have break before this).</ p >
84
+ </ div >
85
+ < table >
86
+ < tr >
87
+ < td > Cell 1-1 - start of new page</ td >
88
+ < td > Cell 1-2 - start of new page</ td >
89
+ </ tr >
90
+ < tr class ="big ">
91
+ < td > Cell 2-1 - start of another new page</ td >
92
+ < td > Cell 2-2 - start of another new page</ td >
93
+ </ tr >
94
+ </ table >
71
95
</ div >
72
96
73
97
<!-- Include html2pdf bundle. -->
You can’t perform that action at this time.
0 commit comments