1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00
WeasyPrint/weasyprint/css/tests_ua.css
Guillaume Ayoub f78eb3763e Use the <content-list> defined in GCPM for string-set and bookmark-label
In this content-list, here are the possibilities:
- string: implemented
- counter/counters: not implemented, but easily possible
- content: implemented (but what's exactly the "string value of an element"?)
- attr: not implemented (I don't know how to do this)
2015-04-30 21:54:19 +02:00

34 lines
1.4 KiB
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, x-table { display: table;
box-sizing: border-box }
tr, x-tr { display: table-row }
thead, x-thead { display: table-header-group }
tbody, x-tbody { display: table-row-group }
tfoot, x-tfoot { display: table-footer-group }
col, x-col { display: table-column }
colgroup, x-colgroup { display: table-column-group }
td, th, x-td, x-th { display: table-cell }
caption, x-caption { display: table-caption }
*[lang] { -weasy-lang: attr(lang); }
a[href] { -weasy-link: attr(href); }
a[name] { -weasy-anchor: attr(name); }
*[id] { -weasy-anchor: attr(id); }
h1 { -weasy-bookmark-level: 1; -weasy-bookmark-label: content(text); }
h2 { -weasy-bookmark-level: 2; -weasy-bookmark-label: content(text); }
h3 { -weasy-bookmark-level: 3; -weasy-bookmark-label: content(text); }
h4 { -weasy-bookmark-level: 4; -weasy-bookmark-label: content(text); }
h5 { -weasy-bookmark-level: 5; -weasy-bookmark-label: content(text); }
h6 { -weasy-bookmark-level: 6; -weasy-bookmark-label: content(text); }