This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

addPageRule

Summary

Not implemented anywhere. Non standard.

Method of css/cssom/styleSheetcss/cssom/styleSheet

Syntax

var number = stylesheet.addPageRule(/* see parameter list */);

Parameters

selector

Data-type
String

A page selector.

style

Data-type
String

This style takes the same form as an inline style specification. For example, "color:blue" is a valid style parameter.

index

Data-type
Number

The zero-based position in the pages collection where the new page object should be placed.

Return Value

Returns an object of type NumberNumber

Always returns -1.

Notes

Each page object represents a style sheet that corresponds to a @page rule in the document.

See also

Related pages

Attributions