@page {
margin: 1cm;
}
@page :first {
margin: 2cm;
}CSSPageRule: selectorText property / notebook
CSSPageRule: selectorText property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const myRules = document.styleSheets[0].cssRules; // Two myRules
console.log(myRules[1].selectorText); // ":first"