mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
3632842b16
If eg. page-break-before is 'always' on a first child, the break is between the clostest ancestor that has a previous sibling and that sibling. See the changed test for an example.
23 lines
857 B
CSS
23 lines
857 B
CSS
/*
|
|
Simplified user-agent stylesheet for HTML5 in tests.
|
|
*/
|
|
html, body, div, h1, h2, h3, h4, ol, p, ul, hr, pre, section, article
|
|
{ display: block; }
|
|
li { display: list-item }
|
|
head { display: none }
|
|
pre { white-space: pre }
|
|
br:before { content: '\A'; white-space: pre-line }
|
|
ol { list-style-type: decimal }
|
|
ol, ul { counter-reset: list-item }
|
|
|
|
table { display: table;
|
|
box-sizing: border-box }
|
|
tr { display: table-row }
|
|
thead { display: table-header-group }
|
|
tbody { display: table-row-group }
|
|
tfoot { display: table-footer-group }
|
|
col { display: table-column }
|
|
colgroup { display: table-column-group }
|
|
td, th { display: table-cell }
|
|
caption { display: table-caption }
|