<style id="inline-style" media="screen, print">
p {
color: blue;
}
</style>HTMLStyleElement: media property / notebook
HTMLStyleElement: media 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.media); // 'screen, print'