2 * dompdf default stylesheet.
5 * @link http://dompdf.github.com/
6 * @author Benj Carson <benjcarson@digitaljunkies.ca>
7 * @author Blake Ross <BlakeR1234@aol.com>
8 * @author Fabien Ménager <fabien.menager@gmail.com>
9 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
11 * Portions from Mozilla
12 * @link https://dxr.mozilla.org/mozilla-central/source/layout/style/res/html.css
13 * @license http://mozilla.org/MPL/2.0/ Mozilla Public License, v. 2.0
16 * @link https://drafts.csswg.org/css-ui-3/#default-style-sheet
25 display: -dompdf-page
!important
;
50 page-break-before: avoid
;
52 counter-increment: page
;
80 blockquote
[type
=cite
] {
89 h1
, h2
, h3
, h4
, h5
, h6
{
131 plaintext
, pre
, xmp
{
143 border-collapse: separate
;
147 text-align: left
; /* quirk */
151 border-style: outset
;
155 /* This won't work (???) */
159 border: 1pt solid grey;
162 /* make sure backgrounds are inherited in tables -- see bug 4510 */
167 /* caption inherits from table not table-outer */
169 display: table-caption
;
175 vertical-align: inherit
;
179 display: table-column
;
183 display: table-column-group
;
187 display: table-row-group
;
188 vertical-align: middle
;
192 display: table-header-group
;
193 vertical-align: middle
;
197 display: table-footer-group
;
198 vertical-align: middle
;
201 /* To simulate tbody auto-insertion */
203 vertical-align: middle
;
208 vertical-align: inherit
;
215 vertical-align: inherit
;
222 quotes: '"' '"' "'" "'"; /* FIXME only the first level is used */
230 content: close-quote
;
235 text-decoration: underline
;
242 i
, cite
, em
, var
, dfn
{
246 tt
, code
, kbd
, samp
{
251 text-decoration: underline
;
255 text-decoration: line-through
;
273 vertical-align: super
;
289 abbr
[title
], acronym
[title
] {
290 text-decoration: dotted underline
;
297 list-style-type: disc
;
304 list-style-type: decimal
;
314 display: -dompdf-list-bullet !important;
315 content: counter(-dompdf-default-counter) ". ";
316 padding-right: 0.5em;
319 /* nested lists have no top/bottom margins */
320 :matches
(ul
, ol
, dir
, menu
, dl
) ul
,
321 :matches
(ul
, ol
, dir
, menu
, dl
) ol
,
322 :matches
(ul
, ol
, dir
, menu
, dl
) dir
,
323 :matches
(ul
, ol
, dir
, menu
, dl
) menu
,
324 :matches
(ul
, ol
, dir
, menu
, dl
) dl
{
329 /* 2 deep unordered lists use a circle */
330 :matches
(ul
, ol
, dir
, menu
) ul
,
331 :matches
(ul
, ol
, dir
, menu
) ul
,
332 :matches
(ul
, ol
, dir
, menu
) ul
,
333 :matches
(ul
, ol
, dir
, menu
) ul
{
334 list-style-type: circle
;
337 /* 3 deep (or more) unordered lists use a square */
338 :matches
(ul
, ol
, dir
, menu
) :matches
(ul
, ol
, dir
, menu
) ul
,
339 :matches
(ul
, ol
, dir
, menu
) :matches
(ul
, ol
, dir
, menu
) menu
,
340 :matches
(ul
, ol
, dir
, menu
) :matches
(ul
, ol
, dir
, menu
) dir
{
341 list-style-type: square
;
345 /* From https://drafts.csswg.org/css-ui-3/#default-style-sheet */
350 input
, button
, select
{
351 display: inline-block
;
352 font-family: sans-serif
;
356 input
[type
=password
],
362 input
[type
=password
],
371 border: 1px solid
#999;
389 input
[type
=text
]:before
,
390 input
[type
=button
]:before
,
391 input
[type
=submit
]:before
,
392 input
[type
=reset
]:before
{
393 content: attr
(value
);
396 input
[type
=file
]:before
{
397 content: "Choose a file";
400 input
[type
=password
][value
]:before
{
401 font-family: "DejaVu Sans" !important
;
402 content: "\2022\2022\2022\2022\2022\2022\2022\2022";
406 input
[type
=checkbox
],
409 font-family: "DejaVu Sans" !important
;
414 input
[type
=checkbox
]:before
{
418 input
[type
=checkbox
][checked
]:before
{
422 input
[type
=radio
]:before
{
426 input
[type
=radio
][checked
]:before
{
434 font-family: monospace
;
435 white-space: pre-wrap
;
436 word-wrap: break-word
;
440 position: relative
!important
;
441 overflow: hidden
!important
;
459 select option
[selected
] {
465 margin: 0.6em 2px 2px;
467 border: 1pt groove
#666;
480 display: inline-block
;
489 margin: 0.5em auto
0.5em auto
;
493 border-style: solid none none none
;
509 display: -dompdf-image
!important
;
516 /* hidden elements */
517 area
, base
, basefont
, head
, meta
, script
, style
, title
,