File: tests_ua.css

package info (click to toggle)
weasyprint 67.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,896 kB
  • sloc: python: 61,025; makefile: 12
file content (40 lines) | stat: -rw-r--r-- 1,581 bytes parent folder | download
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
34
35
36
37
38
39
40
/* Simplified user-agent stylesheet for HTML5 in tests. */

@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { background: white; bleed: 0; @footnote { margin: 0 } }

html, body, div, h1, h2, h3, h4, ol, p, ul, hr, pre, section, article { display: block }

body      { orphans: 1; widows: 1 }
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 }

*[lang]   { -weasy-lang: attr(lang) }
a[href]   { -weasy-link: attr(href) }
a[name]   { -weasy-anchor: attr(name) }
*[id]     { -weasy-anchor: attr(id) }
h1        { bookmark-level: 1; bookmark-label: content(text) }
h2        { bookmark-level: 2; bookmark-label: content(text) }
h3        { bookmark-level: 3; bookmark-label: content(text) }
h4        { bookmark-level: 4; bookmark-label: content(text) }
h5        { bookmark-level: 5; bookmark-label: content(text) }
h6        { bookmark-level: 6; bookmark-label: content(text) }

::marker  { font-variant-numeric: tabular-nums }

::footnote-call   { content: counter(footnote) }
::footnote-marker { content: counter(footnote) '.' }