if (document.preferredStyleSheetSet) {
console.log(
`The preferred style sheet set is: ${document.preferredStyleSheetSet}`,
);
} else {
console.log("There is no preferred style sheet.");
}Document: preferredStyleSheetSet property / notebook
Document: preferredStyleSheetSet property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.