#outside {
fill: black;
}
#inside {
fill: red;
}
@media (prefers-color-scheme: dark) {
#outside {
fill: white;
}
#inside {
fill: black;
}
}page_action / notebook
page_action
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
browser.pageAction.onClicked.addListener(handleClick);