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