4 <style type=
"text/css">
5 @page :visited
{ /* :visited is invalid for @page */
8 @page a_page_name:visited
{ /* :visited is invalid for @page */
29 background-color:green
;
32 @page
somepage:first
{
45 @page page_widht_height
{
48 @page page_size_orientation
{
49 size: ledger landscape
;
51 @page page_orientation_size
{
54 @page err_empty_size
{
57 @page err_unknow_page_size
{
60 @page err_length_and_page_size
{
63 @page err_length_and_orientation
{
66 @page err_orientations
{
67 size: portrait landscape
;
69 @page err_too_many_params
{
70 size: a5 landscape auto
;
80 page: Auto Rotated
; /* Invalid */
83 page: 1cm; /* Invalid */
86 /* FIXME: Add the following once margin at-rule is implemented.
98 <script type=
"text/javascript">
100 if (window
.testRunner
)
101 testRunner
.dumpAsText();
105 document
.getElementById("output").innerHTML
+= str
;
108 function printCssTextOfPageRules()
110 var ss
= document
.styleSheets
;
111 for (var i
= 0; i
< ss
.length
; i
++) {
112 for (var j
= 0; j
< ss
[i
].cssRules
.length
; j
++) {
113 print(ss
[i
].cssRules
[j
].cssText
+ "<br/>");
120 <body onload=
"printCssTextOfPageRules();">
121 <div id=
"output"></div>