<style id="inline-style">
p {
color: blue;
}
</style>HTMLStyleElement: sheet property / notebook
HTMLStyleElement: sheet property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const style = document.getElementById("inline-style");
console.log(style.sheet.cssRules[0].cssText); // 'p { color: blue; }'